类星体在RUN类星体构建时失败



我想用命令类星体构建来构建类星体项目。编译进度达到100%,但我在构建后得到错误:

App · ⚠️  1 error encountered:
./node_modules/htmlparser2/lib/esm/index.js 59:9
Module parse failed: Unexpected token (59:9)
File was processed with these loaders:
* ./node_modules/@quasar/app/lib/webpack/loader.transform-quasar-imports.js
You may need an additional loader to handle the result of these loaders.
|     return getFeed(parseDOM(feed, options));
| }
> export * as DomUtils from "domutils";
| // Old name for DomHandler
| export { DomHandler as DefaultHandler };
@ ./node_modules/sanitize-html/index.js 1:19-41
@ ./node_modules/vue-sanitize/dist/vue-sanitize.js
@ ./src/boot/sanitize.ts
@ ./.quasar/client-entry.js
@ multi ./.quasar/client-entry.js
App · ⚠️  [FAIL] Build failed with 1 error. Check log above.

这是我的package.json:

{
"name": "rfasdef",
"version": "0.0.1",
"description": "",
"productName": "",
"cordovaId": "",
"capacitorId": "",
"author": "",
"private": true,
"scripts": {
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ./"
},
"dependencies": {
"@quasar/extras": "^1.0.0",
"@types/file-saver": "^2.0.5",
"@types/jwt-decode": "^3.1.0",
"axios": "^0.18.1",
"crypto-js": "^4.0.0",
"echarts": "^4.6.0",
"file-saver": "^2.0.5",
"formik": "^2.2.9",
"jalaali-js": "^1.2.3",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"moment-duration-format": "^2.3.2",
"moment-jalaali": "^0.9.6",
"num2persian": "^3.2.2",
"persianjs": "^0.4.0",
"qjdatetime": "^1.1.0",
"quasar": "^1.9.5",
"sass": "^1.45.0",
"vue-echarts": "^5.0.0-beta.0",
"vue-i18n": "^8.0.0",
"vue-persian-datetime-picker": "^2.10.1",
"vue-sanitize": "^0.2.0"
},
"devDependencies": {
"@quasar/app": "^1.6.2",
"@quasar/quasar-app-extension-dotenv": "^1.0.1",
"@types/lodash": "^4.14.150",
"@types/moment-jalaali": "^0.7.5",
"@types/node": "^10.17.15",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^2.17.0",
"babel-eslint": "^10.0.1",
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-loader": "^3.0.3",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.1.2",
"vue-property-decorator": "^8.3.0",
"vuex-class": "^0.3.2",
"vuex-module-decorators": "^0.11.0"
},
"engines": {
"node": ">= 10.18.1",
"npm": ">= 6.13.4",
"yarn": ">= 1.21.1"
},
"browserslist": [
"last 1 version, not dead, ie >= 11"
],
"resolutions": {
"@babel/parser": "7.7.5"
}
}

昨天还能用,但今天不行了!
我尝试用yarn和npm安装包。但是这行不通。

试试这个:

  1. 删除package-lock。目录node_modules
  2. 然后运行npm install或yarn install
  3. 然后运行类星体构建

在您的代码中搜索新的ecma脚本语法,例如。| ? ?

相关内容

  • 没有找到相关文章

最新更新