Amazon web services 在elastic beanstalk上部署需要babbel的应用程序?

Amazon web services 在elastic beanstalk上部署需要babbel的应用程序?,amazon-web-services,amazon-elastic-beanstalk,babeljs,next.js,Amazon Web Services,Amazon Elastic Beanstalk,Babeljs,Next.js,我正在尝试在elastic beanstalk上部署nextjs应用程序。我几乎被卡住了,因为那里没有任何好的资源。我不确定我是否做对了。我在日志中看到的第一个错误是: Oct 10 13:46:29 ip-172-31-37-122 web: ./node_modules/next/dist/client/next.js Oct 10 13:46:29 ip-172-31-37-122 web: Error: Cannot find module 'babel-plugin-inline-re

我正在尝试在elastic beanstalk上部署nextjs应用程序。我几乎被卡住了,因为那里没有任何好的资源。我不确定我是否做对了。我在日志中看到的第一个错误是:

Oct 10 13:46:29 ip-172-31-37-122 web: ./node_modules/next/dist/client/next.js
Oct 10 13:46:29 ip-172-31-37-122 web: Error: Cannot find module 'babel-plugin-inline-react-svg' from '/var/app/current'
Oct 10 13:46:29 ip-172-31-37-122 web: at Array.map (<anonymous>)
Oct 10 13:46:29 ip-172-31-37-122 web: > Build error occurred
Oct 10 13:46:29 ip-172-31-37-122 web: Error: > Build failed because of webpack errors
Oct 10 13:46:29 ip-172-31-37-122 web: at build (/var/app/current/node_modules/next/dist/build/index.js:15:918)
Oct 10 13:46:29 ip-172-31-37-122 web: npm ERR! code ELIFECYCLE
Oct 10 13:46:29 ip-172-31-37-122 web: npm ERR! errno 1
Oct 10 13:46:29 ip-172-31-37-122 web: npm ERR! with-react-intl@1.0.0 build: `npm run extract:i18n && npm run compile:i18n && next build && tsc -p tsconfig.server.json`
Oct 10 13:46:29 ip-172-31-37-122 web: npm ERR! Exit status 1
10月10日13:46:29 ip-172-31-37-122网页:./node_modules/next/dist/client/next.js
10月10日13:46:29 ip-172-31-37-122 web:错误:无法从“/var/app/current”中找到模块“babel插件内联反应svg”
10月10日13:46:29 ip-172-31-37-122网址:at Array.map()
10月10日13:46:29 ip-172-31-37-122 web:>发生生成错误
10月10日13:46:29 ip-172-31-37-122 web:错误:>由于网页包错误,生成失败
10月10日13:46:29 ip-172-31-37-122网页:构建时(/var/app/current/node_modules/next/dist/build/index.js:15:918)
10月10日13:46:29 ip-172-31-37-122网络:npm错误!代码失效循环
10月10日13:46:29 ip-172-31-37-122网络:npm错误!错误1
10月10日13:46:29 ip-172-31-37-122网络:npm错误!反应-intl@1.0.0build:`npm run extract:i18n&&npm run compile:i18n&&next build&&tsc-p tsconfig.server.json`
10月10日13:46:29 ip-172-31-37-122网络:npm错误!退出状态1
我甚至不确定是否可以在Elastic Beanstalk环境中简单地安装这样的babel插件。服务器上的映像应该安装了Node 12的版本,仅此而已。我是否需要其他依赖项?我真的很感激所有的帮助