You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这是vux结合vue的服务端渲染框架vue-hackernews-2.0的时候,
npm run dev或者npm run build都会报错;
What is Expected?
npm run dev能正常跑通
What is actually happening?
错误如下:
error in ./src/components/Hello.vue
Module parse failed: Unexpected token (6:15)
You may need an appropriate loader to handle this file type.
| function injectStyles (context) {
|
| var style0 = ../../node_modules/vux-loader/src/style-loader.js!require("./Hello.vue?vue&type=style&index=0&id=361a4bd2&lang=less&scoped=true")
| if (style0.inject) style0.inject(context)
|
Module parse failed: Unexpected token (3:0)
You may need an appropriate loader to handle this file type.
| import { render, staticRenderFns } from "./UserView.vue?vue&type=template&id=4d74474a"
| import script from "./UserView.vue?vue&type=script&lang=js"
| ../../node_modules/vux-loader/src/script-loader.js!export * from "./UserView.vue?vue&type=script&lang=js"
|
|
vux-loader version
1.0.61
OS/Browsers version
Mac os10.13.1/Chrome 66.0.3359.117
Vue version
2.5.16
Code
Steps to reproduce
这是vux结合vue的服务端渲染框架vue-hackernews-2.0的时候,
npm run dev或者npm run build都会报错;
What is Expected?
npm run dev能正常跑通
What is actually happening?
错误如下:
error in ./src/components/Hello.vue
Module parse failed: Unexpected token (6:15)
You may need an appropriate loader to handle this file type.
| function injectStyles (context) {
|
| var style0 = ../../node_modules/vux-loader/src/style-loader.js!require("./Hello.vue?vue&type=style&index=0&id=361a4bd2&lang=less&scoped=true")
| if (style0.inject) style0.inject(context)
|
@ ./src/router/index.js 3:0-39
@ ./src/app.js
@ ./src/entry-server.js
(node:2037) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see webpack/loader-utils#56
The text was updated successfully, but these errors were encountered: