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
Project not respecting root package.json module type #23060
Comments
Hi @Jesse1989pp I'm not able to see any errors from the repro you linked. Can you provide concrete steps for how to clone the repo and see the config file errors? As for You can rename the file to Unless I'm missing anything else, I don't think it's a bug on the Nx side. |
@jaysoo Thanks for checking! The tsconfig chunks got mentioned in another issue with that error line. I know i can change the extension to mjs or cjs This led to another questions and problem:
On the lack of errors, just to be sure. You did run the actual e2e tests? I forgot to add that step in the reproduction, only added it next to the github repo. Added the step now. |
This issue has been automatically marked as stale because more information has not been provided within 7 days. |
Current Behavior
In my setup i am using nuxt with layers. All layer got a project.json, but are not part of my yarn workspaces. When moving the root package.json to a
type: module
my cypress test start failing on:Your configFile is invalid
I've seen quite some fixes on tsConfig which don't work. When i add an empy package.json in every folder with the module type. Then he's able to resolve the configFile as expected.
Expected Behavior
I would expect all folder to inherit the module type from the root.
GitHub Repo
https://github.com/Jesse1989pp/nx-issue-example/commits/main/
yarn && yarn nx run-many -t e2e
Steps to Reproduce
https://github.com/Jesse1989pp/nx-issue-example/commits/main/
type:module
.yarn && yarn nx run-many -t e2e
(Error should hit on the layer)type:module
(Config should be found now)Nx Report
Failure Logs
Your configFile is invalid: ../libs/domains/product/cypress.config.ts It threw an error when required, check the stack trace below: Error: Cannot find module 'file://../cypress.config.ts'
Package Manager Version
yarn 1.22.22
Operating System
The text was updated successfully, but these errors were encountered: