Код: Выделить всё
npm run buildКод: Выделить всё
failed to load config from /vercel/path0/meu-portfolio/vite.config.js
error during build:
Error: Cannot find module '../lightningcss.linux-x64-gnu.node'
Require stack:
- /vercel/path0/node_modules/lightningcss/node/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1421:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1059:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1064:22)
at Module._load (node:internal/modules/cjs/loader:1227:37)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
at Module.require (node:internal/modules/cjs/loader:1504:12)
at require (node:internal/modules/helpers:16:16)
at Object. (/vercel/path0/node_modules/lightningcss/node/index.js:22:22)
at Module._compile (node:internal/modules/cjs/loader:1761:14)
Error: Command "npm run build" exited with 1
- React
- Vite с развертыванием
- Tailwind CSS
- Версия узла: последняя LTS
- Развертывание на Vercel
Вопрос:
Как я могу исправить эту ошибку модуля Lightningcss.linux-x64-gnu.node при развертывании этого проекта на Vercel?
Подробнее здесь: https://stackoverflow.com/questions/798 ... nu-node-wh
Мобильная версия