-
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
Error: The externalDependency 'vite' for could not be found #22929
Comments
Same error, but on NX 18.2.3 |
I'm getting the same error, but instead of vite, its for eslint.
It's running on a prisma format command. I just found this, so I haven't been able to dig further, but I'll be back with more updates if I have something. Try downgrading your PNPM version for |
Hello, how are you ? :D I have the same issue, any new for a compatibility of the version 9.x of pnpm with nx ? Thanks :) |
Not just dev dependencies such as vite or eslint, it also misses out on the correct processing of run-time dependencies. For example, for a node.js app, if you use the @nx/esbuild:esbuild executor and specify thirdParty: false, it will still bundle the thirdParty deps, because it fails to recognise the npm dependencies as third party deps, because when it tries to compute the array of external dependencies from the project graph, the resulting array is empty. |
Experiencing the same thing |
I get the same error in my local environment. In addition to vite, eslint and vitest also. NX Report complete - copy this into the issue template
Node : 20.12.0
OS : linux-x64
yarn : 1.22.19
nx : 18.0.8
@nx/js : 18.0.8
@nx/jest : 18.0.8
@nx/linter : 18.0.8
@nx/eslint : 18.0.8
@nx/workspace : 18.0.8
@nx/cypress : 18.0.8
@nx/devkit : 18.0.8
@nx/eslint-plugin : 18.0.8
@nx/nest : 18.0.8
@nx/node : 18.0.8
@nx/playwright : 18.0.8
@nx/plugin : 18.0.8
@nx/react : 18.0.8
@nx/storybook : 18.0.8
@nrwl/tao : 18.0.8
@nx/vite : 18.0.8
@nx/web : 18.0.8
@nx/webpack : 18.0.8
typescript : 5.3.3
---------------------------------------
Local workspace plugins:
<REPOSITORY_NAME>/workspace-plugin |
I'm also get this issue but with next app (when I run
NX report:
|
In my case, I improved by the following
|
Nx doesn't support pnpm 9 yet. Support for that is currently being tracked in #22850. I'm going to close this as a duplicate. |
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
Expected Behavior
no error
GitHub Repo
No response
Steps to Reproduce
use pnpm 9.0.4 or bun 1.1.4
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: