Comments (3)
Did you add the plugin?
nx add @nx/vite
from nx.
Did you add the plugin?
nx add @nx/vite
Yes, the '@nx/vite'
dependency is already installed in the package in the root directory and is also present in the 'node_modules'
from nx.
Because you were unable to run nx report
the problem is harder to identify on your end.
You're encountering this issue because you're using mismatched versions of the nx
and @nx/
packages.
They are expecting APIs from other packages that just aren't there because of this version mismatch.
When I manually patch the node_modules/@nx/vite/src/plugin/plugin.js
file to fix the issue, and then run nx report
I get the following:
NX Report complete - copy this into the issue template
Node : 20.12.2
OS : darwin-arm64
npm : 10.5.0
nx : 19.1.2
@nx/js : 19.2.0
@nx/jest : 19.1.2
@nx/linter : 19.1.2
@nx/eslint : 19.1.2
@nx/workspace : 19.1.2
@nx/devkit : 19.1.2
@nx/eslint-plugin : 19.1.2
@nx/react : 19.1.2
@nrwl/tao : 19.1.2
@nx/vite : 19.2.0
@nx/vue : 19.2.0
@nx/web : 19.2.0
typescript : 5.4.5
---------------------------------------
Registered Plugins:
@nx/vite/plugin
@nx/eslint/plugin
@nx/jest/plugin
---------------------------------------
The following packages should match the installed version of nx
- @nx/[email protected]
- @nrwl/[email protected]
- @nx/[email protected]
- @nrwl/[email protected]
- @nx/[email protected]
- @nx/[email protected]
- @nrwl/[email protected]
To fix this, run `nx migrate [email protected]`
You can see at the bottom it tells you about the problem in your workspace.
Remember, you MUST keep all your nx package versions aligned.
The easiest way to do this is to use both nx migrate
to migrate to newer versions, and nx add
when adding new plugnis.
from nx.
Related Issues (20)
- dev-server does not run dependencies HOT 1
- Nx Release works locally but not in github actions HOT 2
- Dependency-checks rule does not respect the pnpm `workspace: *` version signature
- targetDefaults plugin by doesn't inherit default target inputs on projects if a target is not set.
- dev-server executor expects certain options, but error message does not give away how to solve
- generateLockfile option breaks serving application in nx 19.3.2 HOT 1
- NX Cannot read properties of undefined (reading 'options')
- Nx 19.2.3 Angular 17.3.8 SSR with provideClientHydration() not working
- Task breaks without any output with `watch` flag set to true. HOT 1
- targetDefaults are ignored HOT 2
- GeneratePackgageJson : true Doesn't have any package in package.json HOT 3
- run-commands workspace task caching does not function correctly. HOT 1
- cannot lint a brand new js lib HOT 5
- can't install nx package using npm
- nestjs app is served with `--node-env=production`
- @nx/rspack react application does not load environment variables
- No update in Workspace References dependencies for `dist/<lib>/package.json` when using `conventional-commits` & projectsRelationship is `independent`, When only one lib is affected.
- Module Federation not working without barrel imports?
- Nx vite cannot load a vite plugin but the official scaffold loads the same plugin successfully
- bang in outputs does not work correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.