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
I recently migrated to latest NX workspace, while running migration I got a warning it couldn't update several libraries. After looking into the warning I read it was due to missing tsconfig library reference in project.json files. I dumped all my changes, added all respective key/value pairs for files. Ran the migration again, worked as expected. After starting my services a few times it now wont start, gives the following error.
If I stash my changes to all the project.json files that error goes away but I also do get the warnings again when running my jest tests.
Option "tsConfig" is deprecated: Use the ts-jest configuration options in the jest config file instead.
Expected Behavior
I should be able to start my services and run my tests without errors or warnings.
❯ yarn start --verbose
> nx run dashboard:serve:development
NX Cannot read properties of undefined (reading 'startsWith')
TypeError: Cannot read properties of undefined (reading 'startsWith')
at getModuleFederationConfig (/Users/l266099/HEB/df-web/node_modules/@nx/webpack/src/utils/module-federation/get-remotes-for-host.js:75:43)
at moduleFederationDevServerExecutor (/Users/l266099/HEB/df-web/node_modules/@nx/angular/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js:54:86)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getLastValueFromAsyncIterableIterator (/Users/l266099/HEB/df-web/node_modules/nx/src/utils/async-iterator.js:13:19)
at async iteratorToProcessStatusCode (/Users/l266099/HEB/df-web/node_modules/nx/src/command-line/run/run.js:43:29)
at async handleErrors (/Users/l266099/HEB/df-web/node_modules/nx/src/utils/params.js:9:16)
at async process.<anonymous> (/Users/l266099/HEB/df-web/node_modules/nx/bin/run-executor.js:59:28)
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
When you migrate with Nx from a one version of Nx to a newer version, if you have an angular project using packages like @angular/material, which also contain migrations, they will warn about missing tsConfig options. They can and should be ignored. This is just a difference in how ng upgrade works compared to nx migrate. Everything will still be migrated correctly.
You now have an error showing an issue with Module Federation, but I cannot see any clear reason why you would receive it.
Therefore, I can only investigate further when you provide a reproduction. Please do so
Current Behavior
I recently migrated to latest NX workspace, while running migration I got a warning it couldn't update several libraries. After looking into the warning I read it was due to missing
tsconfig
library reference in project.json files. I dumped all my changes, added all respective key/value pairs for files. Ran the migration again, worked as expected. After starting my services a few times it now wont start, gives the following error.If I stash my changes to all the project.json files that error goes away but I also do get the warnings again when running my jest tests.
Option "tsConfig" is deprecated: Use the ts-jest configuration options in the jest config file instead.
Expected Behavior
I should be able to start my services and run my tests without errors or warnings.
GitHub Repo
No response
Steps to Reproduce
yarn start
... gets erroryarn test
give warningsNx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: