You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine for everything I have in my repo. Now I started to add my own crystal plugins.
In the "plugins" section of the nx.json:
"plugins": [
{
"plugin": "@myorg/foo",
}
]
This @myorg/foo uses the build target from above.
When I run nx run-many --targets build it works fine.
When I run nx affected --targets build it fails with the error:
NX Could not load plugin @myorg/foo
LoadPluginError: Could not load plugin @myorg/foo
at loadNxPluginAsync (/home/linda/IdeaProjects/new/techx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/project-graph/plugins/loader.js:203:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 1)
at loadNxPlugins (/home/linda/IdeaProjects/new/techx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/project-graph/plugins/internal-api.js:51:9)
at getTouchedProjectsFromProjectGlobChanges (/home/linda/IdeaProjects/new/techx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/project-graph/affected/locators/project-glob-changes.js:12:23)
at filterAffected (/home/linda/IdeaProjects/new/techx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/project-graph/affected/affected-project-graph.js:20:26)
at getAffectedGraphNodes (/home/linda/IdeaProjects/new/techx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/command-line/affected/affected.js:82:11)
at Object.affected (/home/linda/IdeaProjects/new/techx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/command-line/affected/affected.js:34:22)
at handleErrors (/home/linda/IdeaProjects/new/techx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]/node_modules/nx/src/utils/params.js:9:16)
When I overwrite the main option of the build target in the project.json of @myorg/foo to use a fixed path it works fine.
Expected Behavior
The nx affected command can resolve {projectRoot} properly
Current Behavior
I have a generic build target in my nx.json that looks like this (using {projectRoot} in the paths):
This works fine for everything I have in my repo. Now I started to add my own crystal plugins.
In the "plugins" section of the nx.json:
This
@myorg/foo
uses the build target from above.When I run
nx run-many --targets build
it works fine.When I run
nx affected --targets build
it fails with the error:When I overwrite the
main
option of the build target in the project.json of @myorg/foo to use a fixed path it works fine.Expected Behavior
The
nx affected
command can resolve {projectRoot} properlyGitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: