We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
由于Bisheng 的webpack 配置含有一句配置:
module: { noParse: [/moment.js/], // ... }
导致在对antd 的时间导入包:"./node_modules/rc-picker/es/generate/moment.js"存在不编译问题;
"./node_modules/rc-picker/es/generate/moment.js"
导致加载时出现:Cannot use import statement outside a module
The text was updated successfully, but these errors were encountered:
我也遇到了这个问题,请问你解决了吗? 如果解决了,麻烦告知一下怎么处理的好吗?谢谢。
Sorry, something went wrong.
config.plugins.push(new AntdDayjsWebpackPlugin());
加了个这个插件吧。。。可以去看看我antd-doddle那个项目。。
好的,谢谢。
我尝试通过 webpackConfig 配置把 noParse 规则删掉之后就没这问题了。
webpackConfig
noParse
module.exports = { webpackConfig(config) { delete config.module.noParse; return config; } };
No branches or pull requests
由于Bisheng 的webpack 配置含有一句配置:
导致在对antd 的时间导入包:
"./node_modules/rc-picker/es/generate/moment.js"
存在不编译问题;导致加载时出现:Cannot use import statement outside a module
The text was updated successfully, but these errors were encountered: