@nx/plugin:plugin Error: Cannot find package.json #33966
Replies: 4 comments
-
|
I have worked around the issue currently by editing to prefix
Another workaround is to create a I'm sure the real solution is to be cleverer with setting of |
Beta Was this translation helpful? Give feedback.
-
|
As-expected, encounter problems trying to use my generator If trying to run directly ( Alternatively, trying to build ( |
Beta Was this translation helpful? Give feedback.
-
|
I think I'll just give up on the |
Beta Was this translation helpful? Give feedback.
-
|
Generating new plugins inside of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Current Behavior
I have created a new workspace to contain a mixture of projects, including simple Docker Compose and Python.
I initialised the workspace using
npx nx initI want to create my own Generators, so installed the plugin generator:
./nx add @nx/pluginTrying to create my local plugin failed though:
./nx g @nx/plugin:plugin tools/my-plugin --verbose:Expected Behavior
There should be a
tools/my-plugincreated into which I can create my generators.Since there is no
package.jsonin the root of the workspace, I assume that it should be using the one in/my_workspace/.nx/installation/GitHub Repo
https://github.com/flavour/nx_demo
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions