nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.28k stars 2.32k forks source link

Cannot build with react+ts #10076

Closed xuke444 closed 2 years ago

xuke444 commented 2 years ago

Current Behavior

cannot build

Expected Behavior

Steps to Reproduce

  1. create nx workspace with react as template
  2. after create, npm run build is fine.
  3. switch use yarn, run yarn install
  4. then run yarn build, error show up.

Module build failed (from ../../node_modules/@nrwl/web/src/utils/web-babel-loader.js): Error: Cannot find module './builders/react/buildChildren'

Failure Logs

RROR in ./src/main.tsx Module build failed (from ../../node_modules/@nrwl/web/src/utils/web-babel-loader.js): Error: Cannot find module './builders/react/buildChildren' Require stack:

Environment

Tried nx 13, same issue, nx 12 seems fine.

Node : 16.14.2 OS : win32 x64 yarn : 1.22.18

nx : 14.0.3 @nrwl/angular : Not Found @nrwl/cypress : 14.0.3 @nrwl/detox : Not Found @nrwl/devkit : 14.0.3 @nrwl/eslint-plugin-nx : 14.0.3 @nrwl/express : Not Found @nrwl/jest : 14.0.3 @nrwl/js : 14.0.3 @nrwl/linter : 14.0.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 : 14.0.3 @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 14.0.3 @nrwl/web : 14.0.3 @nrwl/workspace : 14.0.3 typescript : 4.6.4 rxjs : 6.6.7

Community plugins:

github-actions[bot] commented 1 year ago

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.