-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "path" argument must be of type string. Received undefined for nx 14 - when running migration "update-jest-config-extensions" #10164
Comments
can you run this migration with the --verbose flag so I can have a stack trace? |
Sure, here is the stacktrace
|
I've got the same or at least a similar issue. Tried to migrate from 13.9.6 to 14.1.4 on MacOS 12.3.1. nx migrate --run-migrations --verbose
yarn install v1.22.18
Running migration 13-10-0-update-decorate-cli
|
for the @WtfJoke it looks like the migratory wasn't able to locate the defined jest config for your project. so make sure the const configExt = extname(options.jestConfig); |
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. |
Current Behavior
We've upgraded from nx 13.10 to the latest available 14.1.1.
When we run the migration "update-jest-config-extensions" we received the error:
We figured out its caused when you have any configuration block inside the test-target.
Expected Behavior
We expect the migrations to succeed.
Steps to Reproduce
I've reproduced the issue in a fork, see here of your nx examples.
git clone git@github.com:WtfJoke/nx-examples.git
git checkout jest-config-migration
yarn install
yarn nx migrate --run-migrations
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: