bounty将在5天后过期。回答此问题可获得+200声望奖励。MicroMan正在寻找来自知名来源的答案。
我有以下程序包文件
{
"version": "1.0.0",
"scripts": {
"dev": "node ./pm2.js",
},
"dependencies": {
"@nuxtjs/axios": "5.10.2",
"@nuxtjs/style-resources": "1.0.0",
"@sendgrid/mail": "6.3.1",
"axios": "0.19.2",
"cheerio": "1.0.0-rc.2",
"compression": "1.7.4",
"cookie-parser": "1.4.6",
"express": "4.17.1",
"geoip2ws": "1.8.10",
"gsap": "2.1.3",
"lodash": "4.17.21",
"moment": "2.29.4",
"mongoose": "5.9.10",
"morgan": "1.10.0",
"nuxt": "2.15.8",
"pm2": "4.4.0",
"request": "2.88.0",
"sitemap": "2.2.0",
"vcards-js": "2.10.0",
"vuex-router-sync": "5.0.0"
},
"devDependencies": {
"@babel/core": "7.18.10",
"@babel/eslint-parser": "7.18.9",
"chokidar": "3.4.0",
"eslint": "8.21.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-vue": "9.3.0",
"eslint-webpack-plugin": "2.7.0",
"normalize-scss": "7.0.1",
"postcss-preset-env": "6.7.0",
"sass": "1.54.0",
"sass-loader": "10.3.1"
},
"engines": {
"node": "18.7.0",
"npm": "8.13.2"
}
}
但在运行时,我得到以下错误
| 错误:规则在{中只能有一个资源源(提供的资源和测试+包含+排除)|“用途”:[|{1}|“加载器”:“/usr/源代码/应用程序/节点模块/加载器/库/索引. js”,|
“选项”:{|“配置文件”:假,|“babelrc”:假,|“缓存目录”:是,|“环境名称”:“服务器”,|“预设”:[|[|
/usr/源代码/应用程序/节点模块/@nuxt/babel预设应用程序/源代码/索引.js,|
{1}|“核心”:{|【版本】:2款|
上)|上|]|]|}、|
“ident”:“克隆的规则集-30。使用[0]”|上|]|上|/usr/src/app/node_modules/@nuxt/webpack/节点模块/webpack/库/规则集.js:167:11)中的一个或多个节点的名称。|/usr/src/app/node_modules/@nuxt/webpack/节点模块/webpack/库/规则集.js:198:4.
我不确定是哪个软件包导致此问题?
1条答案
按热度按时间tf7tbtn21#
我认为此问题与Webpack有关。请尝试使用以下内容对其进行降级:
我希望这对你有帮助