Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
动态导入在Webpack v4中停止工作_Webpack_Babeljs_Dynamic Import - Fatal编程技术网

动态导入在Webpack v4中停止工作

动态导入在Webpack v4中停止工作,webpack,babeljs,dynamic-import,Webpack,Babeljs,Dynamic Import,有很多像这样的问题(),每个人都说解决方案就是安装babel-plugin-syntax-dynamic-import 但是,在我的情况下,我已经安装了它。我有webpack@3以前,它成功了。 现在我正在升级到v4;刚刚安装了新版本的webpack–动态导入不再有效 ERROR in ./layouts/ClassList/index.js 89:9 Module parse failed: Unexpected token (89:9) You may need an appropriate

有很多像这样的问题(),每个人都说解决方案就是安装
babel-plugin-syntax-dynamic-import

但是,在我的情况下,我已经安装了它。我有webpack@3以前,它成功了。 现在我正在升级到v4;刚刚安装了新版本的webpack–动态导入不再有效

ERROR in ./layouts/ClassList/index.js 89:9
Module parse failed: Unexpected token (89:9)
You may need an appropriate loader to handle this file type.
|
| var Component = (0, _decorators.asChunk)(function () {
>   return import( /* webpackChunkName: "ClassList" */"./Component");
| });
怎么可能呢?如何让工作重新开始