/Users/linyuanfeng/.fie/node_modules/_koa-bodyparser@4.2.1@koa-bodyparser/index.js:72
return async function bodyParser(ctx, next) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/Users/linyuanfeng/.fie/node_modules/_fie-toolkit-nuke@0.9.2@fie-toolkit-nuke/weex-devtool/lib/DebugServer.js:9:18)
//版本
node -v --> 6.11.2
npm -v --> 3.10.10
升级node版本到 v7.9.0 依然报错 已经确保了你们官方谁说的5.5.0至8.0.0版本区间
ebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
configuration.entry should be one of these:
object { : non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function
-> The entry point(s) of the compilation.
Details:
configuration.entry should not be empty.
-> Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.
configuration.entry should be a string.
-> An entry point without name. The string is resolved to a module which is loaded upon startup.
configuration.entry should be an array:
[non-empty string]
configuration.entry should be an instance of function
-> A Function returning an entry object, an entry string, an entry array or a promise to these things.
at webpack (/Users/linyuanfeng/.fie/node_modules/_webpack@4.19.1@webpack/lib/webpack.js:24:9)
at checkList.then.result (/Users/linyuanfeng/.fie/node_modules/_fie-toolkit-nuke@0.9.2@fie-toolkit-nuke/lib/rx-server.js:109:28)
at process._tickCallback (internal/process/next_tick.js:109:7)
qap debug error :
/Users/linyuanfeng/.fie/node_modules/_koa-bodyparser@4.2.1@koa-bodyparser/index.js:72 return async function bodyParser(ctx, next) { ^^^^^^^^
SyntaxError: Unexpected token function at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/Users/linyuanfeng/.fie/node_modules/_fie-toolkit-nuke@0.9.2@fie-toolkit-nuke/weex-devtool/lib/DebugServer.js:9:18)
//版本 node -v --> 6.11.2 npm -v --> 3.10.10
升级node版本到 v7.9.0 依然报错 已经确保了你们官方谁说的5.5.0至8.0.0版本区间 ebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.