You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I create a project strictly according to the instructions React Monorepo.
I immediately get an error when building npx nx run story:build:
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.
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
The text was updated successfully, but these errors were encountered:
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
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
: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
npx nx run story:build
Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: