如果在运行项目时报错如下: Error: Z:\myself\vue3\babel.config.js: Error while loading config - You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously.
解决办法:
先查看我的配置文件package.js在文件前面加上"type":"module":
然后我们需要把babel.config配置文件的后缀名改为.cjs然后运行问题解决: