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

[Feature Request] 不支持webpack4 #64

Open
xecrom opened this issue Jun 5, 2018 · 8 comments
Open

[Feature Request] 不支持webpack4 #64

xecrom opened this issue Jun 5, 2018 · 8 comments

Comments

@xecrom
Copy link

xecrom commented Jun 5, 2018

Existing Component

Component Name

Description

webpack升级到4后不支持vux-loader,希望能支持webpack4

@ldwqh0
Copy link

ldwqh0 commented Jun 7, 2018

个人感觉,作者应该放弃这个loader了,随着vue-loader15的发布,以前的很多痛点现在都能很好的解决了。感觉作者应该去掉vux里面对于vux-loader的依赖,专心的回到vux本身上面去。

@zzc5464
Copy link

zzc5464 commented Dec 17, 2018

我的天。。有解决办法了吗

@ldwqh0
Copy link

ldwqh0 commented Dec 17, 2018

@zzc5464 问题的核心不在webpack4,而是vue-loader15,我们可以升级webpack而不升级 vue-loader
参见https://github.com/ldwqh0/vux-seed

@zzc5464
Copy link

zzc5464 commented Dec 18, 2018

非常感谢,降级vue-loader可行

@fengerzh
Copy link

亲测可行,把vue-loader降至14.0.0即可

@ExpGitHubUp
Copy link

ExpGitHubUp commented Jan 8, 2019

非常感谢,降级vue-loader可行
降到多少?

@fengerzh 这位仁兄的14.0.0试了不行

Module build failed (from ./node_modules/vue-loader/index.js): TypeError: Cannot read property 'vue' of undefined

更新成14.2.3
` error in ./node_modules/vux/src/components/checklist/index.vue

Module build failed (from ./node_modules/css-loader/dist/cjs.js):
ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

at validateOptions (d:\PhpProj\PHP\vux\vuxtest\node_modules\schema-utils\src\validateOptions.js:32:11)
at Object.loader (d:\PhpProj\PHP\vux\vuxtest\node_modules\css-loader\dist\index.js:44:28)

@ ./node_modules/vue-style-loader!./node_modules/css-loader/dist/cjs.js?{"minimize":false,"sourceMap":false}!./node_modules/vue-loader/lib/style-compiler?{"optionsId":"0","vue":true,"scoped":false,"sourceMap":true}!./node_modules/vux-loader/src/after-less-loader.js!./node_modules/less-loader/dist/cjs.js?{"sourceMap":false}!./node_modules/vux-loader/src/style-loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./node_modules/vux/src/components/checklist/index.vue 4:14-444 13:3-17:5 14:22-452
@ ./node_modules/vux/src/components/checklist/index.vue`

update:
修改style-loader 和css-loader顺序即可

@dzjwan521
Copy link

@zzc5464 问题的核心不在webpack4,而是vue-loader15,我们可以升级webpack而不升级 vue-loader
参见https://github.com/ldwqh0/vux-seed

好像用cssmodule的话 打包build有问题

@gottayan
Copy link

亲测可行,把vue-loader降至14.0.0即可

降级之后可以打包成功 但是按需模块打包有问题
index.js?366f:3 VUX: 如果你看到这一行,说明 vux-loader 配置有问题或者代码书写规范的原因导致无法解析成按需引入组件,会导致打包体积过大。请升级到最新版本 vux-loader,建议开启 eslint(standard)。

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

7 participants