webpack 升级Getting error: configuration.resolve.extensions[0] should not be empty
2017-09-18 16:33
429 查看
webpack 升级后,extensions 数组中不能使用空字符串,需要使用* 代替。
否则报错
参考文档:https://github.com/webpack/webpack/issues/3043
I am not sure that this is correct but after a series of trial an error I have tried using the * symbol instead of an empty string. This seems to have fixed the problem.So final syntax for the extensions attribute:
extensions: [‘*’, ‘js’, ‘ts’]
Hope this is the intended way to do it
�� 71 ❤️ 16
否则报错
Getting error: configuration.resolve.extensions[0] should not be empty
参考文档:https://github.com/webpack/webpack/issues/3043
I am not sure that this is correct but after a series of trial an error I have tried using the * symbol instead of an empty string. This seems to have fixed the problem.So final syntax for the extensions attribute:
extensions: [‘*’, ‘js’, ‘ts’]
Hope this is the intended way to do it
�� 71 ❤️ 16
相关文章推荐
- webpack打包遇到locals[0] does not appear to be a `module` object with Hot Module replacement API enabled. You should disable react-transform-hmr in production by using `env` section in Babel configuration
- Wrong permissions on configuration file, should not be world writable问题解决办法
- php 解决Wrong permissions on configuration file, should not be world writable!
- 解决Wrong permissions on configuration file, should not be world writable!
- Wrong permissions on configuration file, should not be world writable!
- phpmyadmin登录不上,Wrong permissions on configuration file, should not be world writable!
- 进入phpmyadmin出现Wrong permissions on configuration file, should not be world writable!
- spring websocket Converters must not be empty
- spring websocket Converters must not be empty
- Wrong permissions on configuration file, should not be world writable
- phpmyadmin Wrong permissions on configuration file, should not be world writable!
- ionic 安装cordova-plugin-crosswalk-webview,报Could not resolve all dependencies for configuration ':_ar
- 解决Wrong permissions on configuration file, should not be world writable
- phpmyadmin出现“Wrong permissions on configuration file, should not be world writable!”错误
- Mac电脑npm:Failed to download repo vuejs-templates/webpack: tunneling socket could not be established,
- 解决Wrong permissions on configuration file, should not be world writable!
- phpmyadmin Wrong permissions on configuration file, should not be world writable
- Wrong permissions on configuration file, should not be world writable!
- Wrong permissions on configuration file, should not be world writable问题解决办法
- webpack resolve extensions 配置