-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
import react-syntax-highlighter/create-element from cjs #9795
import react-syntax-highlighter/create-element from cjs #9795
Conversation
I forgot to change the import for create-element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Is there any chance this fix could get released as a patch for v5.3 as well? |
@tay1orjones @alexandrzavalii if a few people can verify that it's solving the problem well in 6.0, i'd be happy to patch it back to 5.3 for you. |
@shilman @tay1orjones can you please verify alpha and let us know if it works for you? |
Thanks @alexandrzavalii !! |
@alexandrzavalii @shilman Yes, this works for me as well on |
Coming soon! Thanks for testing guys!!! |
this fixes an error present due to the esm import when updating to storybook 5.3.13 storybookjs/storybook#9470 (comment) this has a fix in v6, but is currently in alpha, it's possible a patch for 5.3 could be released storybookjs/storybook#9795 (comment) either way, this can be removed in the future
…r_cjs import react-syntax-highlighter/create-element from cjs
Issue: #9279
This pr is the copy of #9780
Looks like create-element should also be imported from cjs
What I did
This is a splited task from #9292
Changed imports from ESModules to CommonJS modules for react-syntax-highlighter.
How to test
Nothing to test