-
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
LoadPluginError: Could not load plugin #23435
Comments
experiencing the same but with the applicationGenerator from '@nx/next' on v18.3.4 |
I'm experiencing the same problem. Tests work on MacOS but not on our Linux CI. It happens when I call the |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm having the same issue when wrapping the service schematic from @schematics/angular, and executing that. Although, when running locally (MacOS) I get this error
but on CI I get the same as OP. |
facing the same issue, but only in the TeamCity environment. |
@AgentEnder , any update on this? |
Having the same issue. Tests run well on local Mac, but does not work on Linux env in CI. |
Hi there 👋 - so this is a bit more complex than one may imagine. Most typically getting this error during a unit test is a result of a test doing something that is causing the project graph to be created. You'll need to mock the project graph during these tests, and while that sounds rough its also going to give you much more accurate and repeatable tests. Without mocking the graph, the tests will be running generators which create the project graph of the current Nx workspace and make some decisions about that. That's almost always not really what you want. We just recently fixed that behavior on the Nx repo. This suddenly became a problem for some folks because several of our published generators do rely on the graph now. You can see how we are mocking this in our unit test setup: https://github.com/nrwl/nx/blob/master/scripts/unit-test-setup.js |
* feat: configure vitest-pool-workers * fix: remove unneded test script * feat: add needed vitest configuration * feat: add template for new unit tests and integration tests format * fix: nrwl/nx#23435
* feat: configure vitest-pool-workers * fix: remove unneded test script * feat: add needed vitest configuration * feat: add template for new unit tests and integration tests format * fix: nrwl/nx#23435
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
When using the
libraryGenerator()
method from@nx/angular/generators
inside a (Jest) test, it will fail.Example:
The test will fail with the following error message:
Important:
This error only happens on Linux operating system. The same test passes on a MacOS operating system.
Expected Behavior
The test should run successfully on every operating system.
GitHub Repo
https://github.com/decline/nx-plugin-issue
Steps to Reproduce
docker compose up
Info:
Starting the docker container will execute the
nx run my-plugin:test
command which will fail the test. If you run thenx run my-plugin:test
command on a MacOS system, it will pass!Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: