-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
react library build failed #2496
Comments
Thanks for the report, we'll look into it. |
hey @Jimmysh - thank you so much for reporting this. I'm having some trouble reproducing the error you're seeing. The issue you linked to seems to have been fixed in Storybook 4.1.x (we are using I also tried build the project referenced in aiao-io/aiao#52 Would you be able to share a repo please that showcases this and the command you're running? |
@rarmatei npx nx build react-lib |
Thanks for the super quick response! I can definitely reproduce it now in a fresh nx workspace as well:
I'll look into it 👍 |
I think it's related to: babel/babel#10808 Can confirm setting: https://github.com/nrwl/nx/blob/master/packages/web/src/utils/babel-config.ts#L24 to @jaysoo what do you think is best? should we wait for updates on that babel issue, or is there anything we can do about that |
We might be able to remove
But we really don't care about ES5 vs ES2015+, what we really need is UMD vs ESM formats. Whether the user wants to compile to ES5, ES2015, ES2020, etc. is up to them and how they customize their babel config. |
9.4.4 this error come back. https://github.com/Jimmysh/nx-issues-2496 @rarmatei @jaysoo |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Prerequisites
Expected Behavior
React library can build success.
Current Behavior
Build failed.
error message
.../test.tsx: Property name expected type of string but got null
change file to this can build success.
Context
error same as storybookjs/storybook#4615
The text was updated successfully, but these errors were encountered: