even though vite is in my devDependencies, i am getting error that vite: not found when my build script is: “build”: “vite build”. how can i resolve this essue?
devDependencies
are not installed when NODE_ENV
is set to production
(which is the default if not otherwise specified). If you need vite
when deployed to production, it’s not suitable for devDependencies
.
Ensure you’ve installed all dependencies with npm install
, and always run the script using npm run build
to utilize the local vite
binary. If the issue persists, prepend npx
to the command (npx vite build
) or add ./node_modules/.bin
to your PATH
.
This information is irrelevant to use on Render.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.