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
when building in CI on a linux machine we get the following error
> tsc && vite build
node:internal/modules/cjs/loader:1144
const err = new Error(message);
^
Error: Cannot find module '@rollup/rollup-linux-x64-gnu'
Require stack:
- /home/vsts/work/1/s/ui/node_modules/vite/node_modules/rollup/dist/native.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/vsts/work/1/s/ui/node_modules/vite/node_modules/rollup/dist/native.js:49:48)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at cjsLoader (node:internal/modules/esm/translators:345:17) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/vsts/work/1/s/ui/node_modules/vite/node_modules/rollup/dist/native.js'
]
}
Reproduction
impossible to reproduce using vite.new
Steps to reproduce
run npm install on another os (e.g. mac) to generate a lockfile
switch os to e.g. linux, checkout and run npm install and then npm run build
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
@marcuslindfeldt I think you are facing this bug in npm: npm/cli#4828
I guess running npm i after removing both `package-lock.json and node_modules directory would work.
Describe the bug
package-lock was generated on a mac m1 which led to the following package to be installed
when building in CI on a linux machine we get the following error
Reproduction
impossible to reproduce using vite.new
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: