-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Build is broken in NX 16.6.0 #18562
Comments
How exactly did you configure the workspace? It seems to have some configuration issues.
|
@FrozenPandaz I use the create-nx-workspace tool, I don't remember if I choose integrated or package based monorepo... I can give you more details in a few days if the repo provided do not help you |
Yes please, more details would help. I suspect the build logic is okay. However, the config is wrong so I would like to understand how you got into that state. |
@FrozenPandaz I follow these steps:
When you build the implementation, the error is raised. Can you tell me what is wrong with the configuration? Like I said, the same thing happens in a old project when I update NX (also fails in NX 17.0.0) |
create project as per your steps above using nx latest. The build works at first setup. While adding The line is in your github project. (github repo fails to install npm packages with some local download error.) |
I am also experiencing this going from This error only happens when the buildable library is using |
@abrahamsaanchez and anyone else, is it possible that your related: #11289 For anyone having that error, solution: #17798 (comment) |
All my |
@abrahamsaanchez thanks, good to know! Just checking! :) |
@abrahamsaanchez are you still facing this issue? I can't access the reproduction provided in the issue description. Based on this thread, and as explained in #18562 (comment), you seem to have You have two ways of addressing this:
Also, make sure your target defaults are correctly configured. You can see an example setting up a package-base workspace in https://nx.dev/getting-started/tutorials/package-based-repo-tutorial. |
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. |
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
I updated to NX 16.6.0 and I created a library with an interface, them I implement this interface in another library and when I try to build the implementation an "Cannot find module" or "File is not under 'rootDir'" error is raised.
Expected Behavior
I should be able to build the library without errors.
GitHub Repo
https://github.com/abrahamsaanchez/build-error
Steps to Reproduce
Nx Report
Failure Logs
Operating System
Additional Information
In other project, I have some interfaces created before updating to NX 16.6.0 and I can build all the libraries that depends on this interfaces, but I can not build a library created after updating to NX 16.6.0 that use the new interface or a old interface.
The text was updated successfully, but these errors were encountered: