vue项目启动报错 Support for the experimental syntax 'dynamicImport' isn't currently enabled

 

 

 

错误:

Support for the experimental syntax 'dynamicImport' isn't currently enabled 

vue项目启动报错 Support for the experimental syntax 'dynamicImport' isn't currently enabled_第1张图片

解决方法:

第一步

下载官方babel转换import插件

npm install --save-dev @babel/plugin-syntax-dynamic-import

第二步

项目根目录新建一个.babelrc

里面写

{

    "plugins": ["@babel/plugin-syntax-dynamic-import"]

  }

你可能感兴趣的:(Vue,vue)