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

打包报错 #22

Open
zsg857981535 opened this issue Jun 5, 2018 · 6 comments
Open

打包报错 #22

zsg857981535 opened this issue Jun 5, 2018 · 6 comments

Comments

@zsg857981535
Copy link

照着vue-cli的那个example配置了一下,唯一的差别是用了vux-loader, 打包的时候报下面的错误,请大佬帮看下是啥问题?谢谢!

Starting to optimize CSS...
Processing static/css/main.5a5c7be868e0038b0bea389a1a89e55d.css...
Processed static/css/main.5a5c7be868e0038b0bea389a1a89e55d.css, before: 101813, after: 58680, ratio:57.64%
======== vux-loader: duplicate-style done! ========

TypeError: Cannot read property 'split' of undefined
at getModuleName (C:\Users\Desktop\test-skeleton\node_modules\webpack-node-externals\index.js:18:16)
at C:\Users\Desktop\test-skeleton\node_modules\webpack-node-externals\index.js:40:26
at handleExternals (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\ExternalModuleFactoryPlugin.js:70:16)
at C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\ExternalModuleFactoryPlugin.js:83:5
at applyPluginsAsyncWaterfall (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\NormalModuleFactory.js:236:4)
at NormalModuleFactory.applyPluginsAsyncWaterfall (C:\Users\Desktop\test-skeleton\node_modules\tapable\lib\Tapable.js:260:70)
at NormalModuleFactory.create (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\NormalModuleFactory.js:220:8)
at semaphore.acquire (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\Compilation.js:407:18)
at Semaphore.acquire (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\util\Semaphore.js:16:4)
at Compilation._addModuleChain (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\Compilation.js:406:18)
at Compilation.addEntry (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\Compilation.js:494:8)
at Compiler.compiler.plugin (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\SingleEntryPlugin.js:24:16)
at Compiler.applyPluginsParallel (C:\Users\Desktop\test-skeleton\node_modules\tapable\lib\Tapable.js:293:14)
at applyPluginsAsync.err (C:\Users\Desktop\test-skeleton\node_modules\webpack\lib\Compiler.js:499:9)

@feibinyang
Copy link

#11 看看这个?

@zsg857981535
Copy link
Author

@feibinyang 感觉不是一个报错

@kenshinzzz
Copy link

我也遇到同样的报错,webpack3.
引入的插件有:
webpack.HotModuleReplacementPlugin
webpack.NamedModulesPlugin
webpack.NoEmitOnErrorsPlugin
HashedModuleIdsPlugin
webpack.optimize.CommonsChunkPlugin
InlineManifestWebpackPlugin
HtmlWebpackIncludeAssetsPlugin
ExtractTextPlugin
SkeletonWebpackPlugin
HtmlPlugin

@xiaoiver
Copy link
Collaborator

xiaoiver commented Jul 3, 2018

谢谢大家的反馈,稍后我会上传一个使用 vux-loader 的例子

@zsg857981535
Copy link
Author

@xiaoiver 谢谢,还没传吗?example里面没有找到

@xiaoiver
Copy link
Collaborator

@zsg857981535 实在不好意思拖了这么久。我照着 vux 文档自己写了一个简单的,在这里

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

4 participants