Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated index.html to fix broken instructions #1462

Merged
merged 2 commits into from
Jul 6, 2018

Conversation

Shivang44
Copy link
Contributor

Requiring components without the "index.js" part and calling "loadLanguages" results in a function not found error for me. Adding index.js, as commented by @Golmote, fixes that error.

Ref: #972

Requiring components without the "index.js" part and calling "loadLanguages" results in a function not found error for me. Adding index.js, as commented by @Golmote, fixes that error.

Ref: PrismJS#972
@Golmote
Copy link
Contributor

Golmote commented Jul 6, 2018

Hi! Does require('prismjs/components/') (with the trailing slash) work for you? I think it's what was meant to be written.

Fixed the require so that nodejs does not give an error when requiring the loadLanguages function.
@Shivang44
Copy link
Contributor Author

Hey, thanks for the quick response @Golmote. That does actually fix it! I've revised my PR accordingly

@Golmote
Copy link
Contributor

Golmote commented Jul 6, 2018

Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants