Closed Little-Little-Monster closed 5 years ago
这个问题遇到好几次了,这次升级后又得改,这个文件:node_modules\vux\src\libs\passive_supported.js,改为:
// module.exports = passiveSupported
export default passiveSupported
这个问题遇到好几次了,这次升级后又得改,这个文件:node_modules\vux\src\libs\passive_supported.js,改为:
// module.exports = passiveSupported export default passiveSupported
那请问目前哪个版本是正常的呢?之前我就回退到2.8.0也报这个错
这个问题遇到好几次了,这次升级后又得改,这个文件:node_modules\vux\src\libs\passive_supported.js,改为:
// module.exports = passiveSupported export default passiveSupported
刚刚试了一下,直接改完那个文件后,会发现其他文件也有这个错,不止一个文件。是我配置有问题吗?
@Little-Little-Monster 我也是刚刚遇到这个问题,目前就改了这一处,要不你都改了试试。
@Little-Little-Monster 我也是刚刚遇到这个问题,目前就改了这一处,要不你都改了试试。
改不完,改了两个,又出来一个相关的。我还是用vue-cli2.0吧 之前有人提过这个issue,和新版本webpack有些地方不兼容,module.exports好多地方没统一
已经都改了,这两天发布个新版本。
已经都改了,这两天发布个新版本。
好的 辛苦了
已经发布,还有问题请反馈我及时解决。
VUX version
2.9.2
OS/Browsers version
window/google73.0.3683.86
Vue version
2.6.6
Code
Steps to reproduce
报错提示的是 在webpack打包的时候,可以在js文件中混用require和export。但是不能混用import 以及module.exports。 因为webpack 2中不允许混用import和module.exports,
vue-cli3 通过vue/cli-plugin-vux插件引入vux项目,是还需要配置什么吗?
What is Expected?
正常运行
What is actually happening?
抛出异常