Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] @vue/cli vue-cli 3.x Module parse failed: Unexpected token (3:0) You may need an appropriate loader to handle this file type. #2988

Closed
heystar opened this issue Jul 30, 2018 · 7 comments
Milestone

Comments

@heystar
Copy link

heystar commented Jul 30, 2018

VUX version

2.9.2

OS/Browsers version

Mac Windows / Chrome

Vue version

2.5.16

Code

configureWebpack: config => {
        require('vux-loader').merge(config, {
            options: {},
            plugins: ['vux-ui']
        })
 }

Steps to reproduce

const vuxLoader = require('vux-loader')

module.exports = {
configureWebpack: config => {
require('vux-loader').merge(config, {
options: {},
plugins: ['vux-ui']
})
}
}

What is Expected?

正常加载loader

What is actually happening?

Module parse failed: Unexpected token

@hank2718
Copy link

关注中,也是这个问题

@lanlanmingyue
Copy link

同样的问题,关注中

@maoliang2271
Copy link

我也是

@prosaically
Copy link

我的无法加载,报错:You may need an appropriate loader to handle this file type.,你能给个你的配置吗?

@EricLiuCN
Copy link

不知道你用的是什么,我是用的是laravel框架,在package.json文件中把
"vue-loader": "^13.3.0",
"vue-template-compiler": "^2.5.2"
应该是版本太高了 这两项的版本换成这两个 亲测通过。
吃了没文化的亏,爬坑到现在。记录一下

@eightHundreds
Copy link

不知道你用的是什么,我是用的是laravel框架,在package.json文件中把
"vue-loader": "^13.3.0",
"vue-template-compiler": "^2.5.2"
应该是版本太高了 这两项的版本换成这两个 亲测通过。
吃了没文化的亏,爬坑到现在。记录一下

我这边也是版本太高了
但是vue-loader 13不适合webpack4,我降低到 vue-loader 14 就行了

@caozhong1996 caozhong1996 added this to the 2.9.5 milestone Jun 13, 2021
@caozhong1996
Copy link
Collaborator

see #3778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants