在我的vue项目中出现了如图所示的问题:

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

 

 但是在之前的项目从未遇到过,于是百度了许多,网上介绍的都是intsall @babel/plugin-syntax-dynamic-import  并且在..babelrc中引入的方法,但是在vueCli3.0之后的版本根本不存在这个文件,其实它是变成了babel.config.js。

因此在我的项目中发现这个文件竟然不见啦,然后我重新配置了一下这个文件:

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

 

 但是一般在项目中这个文件是自带的。只要不是误操作删除了就行!

 

相关文章:

  • 2022-02-10
  • 2022-02-28
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-01-26
  • 2022-12-23
相关资源
相似解决方案