收藏
回答

为什么小程序服务端NodeJS SDK 在vue中引用编译时报错?

 ERROR  Failed to compile with 1 errors                                                                                                                                                     12:11:59 AM
 error  in ./node_modules/tcb-admin-node/index.js

Module parse failed: Unexpected token (111:18)
You may need an appropriate loader to handle this file type.
|   }
|   this.config = Object.assign(this.config, dbConfig)
|   return new Db({ ...this })
| }
|

 @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/Demo.vue 18:0-38
 @ ./src/components/Demo.vue
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
回答关注问题邀请回答
收藏
登录 后发表内容
问题标签