web-1 | yarn run v1.22.19
web-1 | $ vite
web-1 | /app/node_modules/rollup/dist/native.js:59
web-1 | throw new Error(
web-1 | ^
web-1 |
web-1 | Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
web-1 | at requireWithFriendlyError (/app/node_modules/rollup/dist/native.js:59:9)
web-1 | at Object.<anonymous> (/app/node_modules/rollup/dist/native.js:68:76)
web-1 | ... 3 lines matching cause stack trace ...
web-1 | at Module._load (node:internal/modules/cjs/loader:1081:12)
web-1 | at cjsLoader (node:internal/modules/esm/translators:344:17)
web-1 | at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:284:7)
web-1 | at ModuleJob.run (node:internal/modules/esm/module_job:235:25)
web-1 | at async ModuleLoader.import (node:internal/modules/esm/loader:461:24) {
web-1 | [cause]: Error: Cannot find module '@rollup/rollup-linux-x64-gnu'
web-1 | Require stack:
web-1 | - /app/node_modules/rollup/dist/native.js
web-1 | at Module._resolveFilename (node:internal/modules/cjs/loader:1202:15)
web-1 | at Module._load (node:internal/modules/cjs/loader:1027:27)
web-1 | at Module.require (node:internal/modules/cjs/loader:1290:19)
web-1 | at require (node:internal/modules/helpers:188:18)
web-1 | at requireWithFriendlyError (/app/node_modules/rollup/dist/native.js:41:10)
web-1 | at Object.<anonymous> (/app/node_modules/rollup/dist/native.js:68:76)
web-1 | at Module._compile (node:internal/modules/cjs/loader:1455:14)
web-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1534:10)
web-1 | at Module.load (node:internal/modules/cjs/loader:1265:32)
web-1 | at Module._load (node:internal/modules/cjs/loader:1081:12) {
web-1 | code: 'MODULE_NOT_FOUND',
web-1 | requireStack: [ '/app/node_modules/rollup/dist/native.js' ]
web-1 | }
web-1 | }
web-1 |
web-1 | Node.js v22.0.0`your text`
web-1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
web-1 | error Command failed with exit code 1.
so this the error i tried all i can find online but nothing work. i did try to add npm i or yarn add in my docker file but it didn’t change anything i keep getting the same problem