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

Support for the experimental syntax 'flow' isn't currently enabled #14807

Closed
ssovberkt opened this issue Feb 5, 2023 · 2 comments · Fixed by #15061
Closed

Support for the experimental syntax 'flow' isn't currently enabled #14807

ssovberkt opened this issue Feb 5, 2023 · 2 comments · Fixed by #15061
Assignees
Labels
outdated scope: react Issues related to React support for Nx type: bug

Comments

@ssovberkt
Copy link

Current Behavior

Hello! I create a project strictly according to the instructions React Monorepo.
I immediately get an error when building npx nx run story:build:
Support for the experimental syntax 'flow' isn't currently enabled
Solutions add @babel/preset-flow and/or @babel/plugin-syntax-flow do not help.
The choice of different bundler (webpack, vite, rollup) at the creation stage did not solve the problem.

Expected Behavior

At least according to the official documentation everything works.
The project is up and running.

GitHub Repo

No response

Steps to Reproduce

  1. Step 1
  2. Step 2
  3. npx nx run story:build

Nx Report

Node : 18.13.0
   OS   : darwin arm64
   npm  : 8.19.3
   
   nx : 15.6.3
   @nrwl/angular : Not Found
   @nrwl/cypress : 15.6.3
   @nrwl/detox : Not Found
   @nrwl/devkit : 15.6.3
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : 15.6.3
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 15.6.3
   @nrwl/js : 15.6.3
   @nrwl/linter : 15.6.3
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 15.6.3
   @nrwl/react-native : Not Found
   @nrwl/rollup : 15.6.3
   @nrwl/schematics : Not Found
   @nrwl/storybook : Not Found
   @nrwl/web : Not Found
   @nrwl/webpack : 15.6.3
   @nrwl/workspace : 15.6.3
   @nrwl/vite : Not Found
   typescript : 4.8.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:

Failure Logs

No response

Additional Information

No response

@ssovberkt
Copy link
Author

ssovberkt commented Feb 5, 2023

Adding a file .babelrc with content {"presets": ["@nrwl/react/babel"]} in created libraries solves the problem. I think you need to update the library generation with @nrwl/js:lib, @nrwl/react:lib
#8600

@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 19, 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