Closed Will956 closed 2 years ago
It may be related to that changes https://github.com/nrwl/nx/commit/67e032d5cce8a18f06f4095f7f3d720653b3daf9, but I'm not sure ๐
Hey @FrozenPandaz, thanks for the quick fix โค๏ธ But how I'm supposed to use that plugin in my project? Can't figure out what I have to do (bumping to 10.0.13
didn't fix our problem and as you added a plugin I assume I have to do something). Thanks ๐
Ok, I guess I have to add plugins: ["package-json"]
in my nx.json
๐ต๏ธ But now I get another issue:
> NX unable to find tsconfig.base.json or tsconfig.json
We do not have a root tsconfig.json
in our repository, there are located in each package.
EDIT
If I add an empty tsconfig.json
at the rool level I get:
> NX Cannot find module 'package-json'
So I guess this is not the way to add plugins ๐
Hey @FrozenPandaz, can you ๐ at this please? Or if you can send any documentation that can help us, thanks ๐
Yes, a new plugin is available: nx/plugins/package-json
. You can add it by adding this to nx.json
:
"plugins": [
"nx/plugins/package-json"
]
What this plugin does is that it will re-enable the behavior prior to 15.0.11
find all package.json
files as projects even without npm/yarn workspaces. After adding that to your workspace, the projects that showed up before should show up. Let me know if you have any issues.
Sorry for the delay. This will be documented shortly.
Thanks @FrozenPandaz, works like a charm โค๏ธ
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.
Hello ๐
Current Behavior
We have a repository that uses Nx and our setup is set as follows:
The root package.json does not have a
workspace
entry, we do not use npm workspace.Since the release of 15.0.11,
nx graph
can't find any projects.The error message from the
nx print-affected
command:Expected Behavior
Before that release, Nx can find our projects:
package-a
andpackage-b
.According to the error message, it looks like we have to use
workspace
now but I didn't find any documentation that push in that direction (but maybe I missed something).Environment
Thanks ๐