Vue packing Times wrong prompt SyntaxError: Unexpected token (1:5)

< H2 > item is wrong in npm run build packing Times, but npm run dev can execute it normally < / H2 >

/ /
building for production. {SyntaxError: Unexpected token (1:5)

at Parser.pp$4.raise (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:2488:13)
at Parser.pp.unexpected (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:623:8)
at Parser.pp.expect (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:617:26)
at Parser.pp$3.parseParenAndDistinguishExpression (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:2043:38)
at Parser.pp$3.parseExprAtom (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:1978:41)
at Parser.parseExprAtom (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\lib\inject.js:58:31)
at Parser.pp$3.parseExprSubscripts (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:1872:19)
at Parser.pp$3.parseMaybeUnary (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:1849:17)
at Parser.pp$3.parseExprOps (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:1791:19)
at Parser.pp$3.parseMaybeConditional (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:1774:19)
at Parser.pp$3.parseMaybeAssign (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:1750:19)
at Parser.pp$3.parseExpression (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:1722:19)
at Parser.pp$1.parseStatement (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:777:45)
at Parser.parseStatement (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\lib\inject.js:45:31)
at Parser.pp$1.parseTopLevel (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:672:23)
at Parser.parse (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:529:15)
at Object.parse (D:\ky-tesla\zhihuijingqu-web\node_modules\acorn-dynamic-import\node_modules\acorn\dist\acorn.js:3378:37) pos: 5, loc: Position { line: 1, column: 5 }, raisedAt: 6 }

"webpack": "^ 3.6.0",

"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"

the code related to the red mark that also appears in the process of packaging

/ /
ERROR in chunk app [initial]
static/js/ [name] .js
Unexpected token (205initial 27)
| var urlHost = process.env.API_HOST; < name > | var self = this;
| this.$axios.post ( http://d.d:e/ + "api/xxx", {
|" templateName ": goodsName,
|" merchantId ": merchantId,

Build failed with errors.

npm err! Windows_NT 10.0.17134
npm err! Argv "C:\ Program Files\ nodejs\ node.exe"C:\ Program Files\ nodejs\ node_modules\ npm\ bin\ npm-cli.js"run"build"
npm err! Node v6.10.0
npm err! Npm v3.10.10
npm err! Code ELIFECYCLE
npm err! Zhihuijingqu-web@1.0.0 build: node build/build.js
npm err! Exit status 1
npm err!
npm err! Failed at the zhihuijingqu-web@1.0.0 build script "node build/build.js".
npm err! Make sure you have the latest version of node.js and npm installed.
npm err! If you do, this is most likely a problem with the zhihuijingqu-web package,
npm err! Not with npm itself.
npm err! Tell the author that this fails on your system:
npm err! Node build/build.js
npm err! You can get information on how to open an issue for this project with:
npm err! Npm bugs zhihuijingqu-web
npm err! Or if that isn"t available, you can get their info via:
npm err! Npm owner ls zhihuijingqu-web
npm err! There is likely additional logging output above.

npm err! Please include the following file with any support request:
npm err! D:ky-teslazhihuijingqu-webnpm-debug.log

after the problem occurred, I tried to modify the request, node_modules, etc., but did not solve it

related codes

/ /

rules: [
  {
    test: /\.vue$/,
    loader: "vue-loader",
    // options: vueLoaderConfig
    options: {
      loaders:{}
    }
  },
  {
    test: /\.js$/,
    loaders: ["babel-loader"],
    exclude: /node_modules/,
    include: [resolve("src"), resolve("test"), resolve("node_modules/element-ui/src/mixins/emitter.js"),]
  },
  {
    test: /\.css$/, 
    include: [ 
      /src/,//srccss 
      "/node_modules/element-ui/lib/"  // 
    ], 
    loader: "style-loader!css-loader"
  },
  {
    test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
    loader: "url-loader",
    options: {
      limit: 10000,
      name: utils.assetsPath("img/[name].[hash:7].[ext]")
    }
  },
  {
    test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
    loader: "url-loader",
    options: {
      limit: 10000,
      name: utils.assetsPath("media/[name].[hash:7].[ext]")
    }
  },
  {
    test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
    loader: "url-loader",
    options: {
      limit: 10000,
      name: utils.assetsPath("fonts/[name].[hash:7].[ext]")
    }
  }
]

},

it"s normal to pack at first, but then you keep reporting errors with npm? Ask the great god for guidance?

Jun.08,2021

is finally found in git management. It is a colleague who added less double quotation marks in confing/prod.env.js 's API_HOST:' "http://xxxxxxxxx"' when modifying the agent

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4982a-44d52.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4982a-44d52.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?