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

import react-syntax-highlighter/create-element from cjs #9795

Merged

Conversation

alexandrzavalii
Copy link

@alexandrzavalii alexandrzavalii commented Feb 8, 2020

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

@alexandrzavalii
Copy link
Author

I forgot to change the import for create-element
@ndelangen

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tay1orjones
Copy link
Contributor

Is there any chance this fix could get released as a patch for v5.3 as well?

@shilman
Copy link
Member

shilman commented Feb 19, 2020

@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.

@alexandrzavalii
Copy link
Author

@shilman
I verified it, and I am using 6 alpha version.
Would prefer having it in 5.3 though

@tay1orjones can you please verify alpha and let us know if it works for you?

@shilman
Copy link
Member

shilman commented Feb 20, 2020

Thanks @alexandrzavalii !!

@tay1orjones
Copy link
Contributor

@alexandrzavalii @shilman Yes, this works for me as well on 6.0.0-alpha.19. Having it in 5.3 would be great!

@shilman
Copy link
Member

shilman commented Feb 24, 2020

Coming soon! Thanks for testing guys!!!

tay1orjones added a commit to carbon-design-system/carbon-addons-iot-react that referenced this pull request Feb 24, 2020
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
@shilman shilman added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Feb 26, 2020
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Mar 14, 2020
shilman added a commit that referenced this pull request Mar 14, 2020
…r_cjs

import react-syntax-highlighter/create-element from cjs
@shilman shilman removed patch:yes Bugfix & documentation PR that need to be picked to main branch patch:done Patch/release PRs already cherry-picked to main/release branch labels Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants