nx: Error: Cannot find module '@nrwl/workspace/src/utils/perf-logging'
I have tried to migrate to the latest nx version but getting error as Cannot find module ‘@nrwl/workspace/src/utils/perf-logging’
It seems that @nrwl/workspace/src/utils/perf-logging is required at https://github.com/nrwl/nx/blob/d8fafcd00fd2608272d466f4a9ed216ea7995b30/packages/cli/lib/init-local.ts#L14
When we actually look at https://github.com/nrwl/nx/tree/master/packages/workspace/src/utils there is no such file perf-logging.ts
Can you please check
“@nrwl/workspace”: “11.2.6”, “@nrwl/angular”: “11.2.6”,
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 6
- Comments: 17 (8 by maintainers)
just commenting to confirm that this happens to me as well. for anyone who will encounter this in the future, just check the
@nrwl/cliinsidepackage.jsonand make sure it has the same version as the rest of @nrwl packagesI cloned your repo, and I observed that your version of
@nrwl/cliis indeed out of sync with the rest of the packages"@nrwl/cli": "10.3.0".So, you can try running
yarn add -D @nrwl/cliand then you will be able to start your server.For me too. @nrwl/cli was not upgraded with the rest of the packages.
@udayvunnam thank you for submitting the issue. Could you provide a repo with a repro?
I think your
@nrwl/climight be out of sync with the rest of the packages.Yup, same issue here. “@nrwl/workspace”: “11.2.6” “”@nrwl/angular": “11.2.6”
@vsavkin @mandarini Thanks a ton for building nx. My work and personal projects have been much productive with it.
Thank you @mandarini. That works!
Shouldn’t
nx migrate latestupgrade@nrwl/cliversion too?