the request of a dependency is an expression

Error

Critical dependency: the request of a dependency is an expression

I want use "babel-plugin-dynamic-import-webpack": "^1.1.0",but throw this warning ..

I have clean node_modules dictionary and reinstall also not work ,Who can help me to fix this warning ?

console..

 warning  in ./src/router/modules/reportMenu.js

Critical dependency: the request of a dependency is an expression

 warning  in ./src/router/modules/reportMenu.js

Critical dependency: the request of a dependency is an expression

 warning  in ./src/router/modules/reportMenu.js

Critical dependency: the request of a dependency is an expression

 warning  in ./src/router/modules/reportMenu.js

Critical dependency: the request of a dependency is an expression

你期待的结果是什么?实际看到的错误信息又是什么?

阅读 7.2k
1 个回答

webpack版本不支持import动态引入导致的报错,可以改用require

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题