nrwl / nx

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

Cannot generate host and remote applications #13845

Closed diegovf closed 1 year ago

diegovf commented 1 year ago

Current Behavior

Having an empty workspace (with react plugin installed) running module federation generator fails.

Expected Behavior

It shouldn't fail.

Github Repo

No response

Steps to Reproduce

  1. creating an empty Nx workspace
  2. install react plugin
  3. generate host and remote applications

Nx Report

>  NX   Report complete - copy this into the issue template

   Node : 16.15.0
   OS   : darwin arm64
   npm  : 9.2.0

   nx : 14.6.5
   @nrwl/angular : Not Found
   @nrwl/cypress : 15.3.3
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.6.5
   @nrwl/eslint-plugin-nx : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 15.3.3
   @nrwl/js : 15.3.3
   @nrwl/linter : 14.6.5
   @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.3.3
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : Not Found
   @nrwl/web : Not Found
   @nrwl/workspace : 14.6.5
   typescript : 4.7.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
     @nrwl/webpack: 15.3.3

Failure Logs

>  NX   Cannot find module 'nx/src/lock-file/lock-file'

   Require stack:
   - /Users/dflores/code/acme/node_modules/@nrwl/jest/node_modules/@nrwl/devkit/index.js
   - /Users/dflores/code/acme/node_modules/@nrwl/jest/src/utils/config/update-config.js
   - /Users/dflores/code/acme/node_modules/@nrwl/jest/index.js
   - /Users/dflores/code/acme/node_modules/@nrwl/react/src/generators/application/lib/add-jest.js
   - /Users/dflores/code/acme/node_modules/@nrwl/react/src/generators/application/application.js
   - /Users/dflores/code/acme/node_modules/@nrwl/react/src/generators/host/host.js
   - /Users/dflores/code/acme/node_modules/nx/src/config/workspaces.js
   - /Users/dflores/code/acme/node_modules/nx/src/config/configuration.js
   - /Users/dflores/code/acme/node_modules/nx/src/command-line/generate.js
   - /Users/dflores/code/acme/node_modules/nx/src/command-line/nx-commands.js
   - /Users/dflores/code/acme/node_modules/nx/bin/init-local.js
   - /Users/dflores/code/acme/node_modules/nx/bin/nx.js
   - /Users/dflores/.nvm/versions/node/v16.15.0/lib/node_modules/nx/bin/nx.js
   Pass --verbose to see the stacktrace.

Additional Information

I am just following this tutorial btw

FrozenPandaz commented 1 year ago

Your versions of @nrwl/* packages are not aligned. Can you please align them all to latest and see if that fixes the issue?

yin1218 commented 1 year ago

@FrozenPandaz I've encountered the same problem and have updated all @nrwl/* to the same latest version, but this issue still exist

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

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.