@jekanok

Почему netlify не собирает плагины?

Привет, у меня есть проект которые работает на nuxt, с custom плагинами, все работало до момента обновления env до новой версии. Локально запускал сборку, все работает, но в самом netlify плагины не собирает:

Plugin "./netlify-plugins/build-lambda-functions" internal error

Error: Command failed: npm run build --prefix  lambdas/identity-signup
webpack 3.12.0
Usage: https://webpack.js.org/api/cli/
Usage without config file: webpack <entry> [<entry>] <output>
Usage with config file: webpack


Config options:
--config       Path to the config file
[string] [default: webpack.config.js or webpackfile.js]
--config-name  Name of the config to use                              [string]
--env          Environment passed to the config, when it is a function
.....

очень странно что пишет webpack 3.12 если ecтановленн в плагине 5.50

Unknown arguments: mode, node-env
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! identity-signup-event@1.0.0 build: webpack --mode=production --node-env=production
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the identity-signup-event@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?


npm ERR! A complete log of this run can be found in:
npm ERR!     /opt/buildhome/.npm/_logs/2023-03-08T19_24_23_376Z-debug.log

In "onPreBuild" event in "./netlify-plugins/build-lambda-functions" from netlify.toml at ChildProcess.exithandler (child_process.js:383:12) at ChildProcess.emit (events.js:400:28) at ChildProcess.emit (domain.js:475:12) at maybeClose (internal/child_process.js:1088:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)

Error properties: { killed: false, code: 1, signal: null, cmd: 'npm run build --prefix lambdas/identity-signup', stdout: '\n' + '> identity-signup-event@1.0.0 build /opt/build/repo/web/lambdas/identity-signup\n' + '> webpack --mode=production --node-env=production\n' + '\n', stderr: 'webpack 3.12.0\n' + 'Usage:


может кто-то сталкивался с этим, буду признательным за ответ
  • Вопрос задан
  • 27 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы