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

React library build failed "Property name expected type of string but got null" #3202

Closed
Jimmysh opened this issue Jun 19, 2020 · 2 comments · Fixed by #3308
Closed

React library build failed "Property name expected type of string but got null" #3202

Jimmysh opened this issue Jun 19, 2020 · 2 comments · Fixed by #3308
Labels
outdated scope: react Issues related to React support for Nx type: bug

Comments

@Jimmysh
Copy link
Contributor

Jimmysh commented Jun 19, 2020

code: https://github.com/Jimmysh/nx-issues-2496
#2496

Current Behavior

Build failed.

Expected Behavior

React library can build success.

Steps to Reproduce

  npx nx build react-lib

This issue may not be prioritized if details are not provided to help us reproduce the issue.

Failure Logs

error message
Error during bundle: TypeError: .../react-lib.tsx: Property name expected type of string but got null

Environment

@jaysoo
Copy link
Member

jaysoo commented Jun 19, 2020

It looks like a problem using regenerator transform and destructuring together.

facebook/regenerator#391

We'll fix it for Nx 10, and in the meantime the workaround is to avoid destructuring for await.

const x = await create();
console.log(x.a);

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: react Issues related to React support for Nx type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants