JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

npm run dev 提示 { parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }

发布时间 2023-10-07 15:29:22作者: snake_j

修改

emacs node_modules/vue-loader/lib/template-compiler/index.js

将以下代码中的 babylon 替换 babel

if (!isProduction) {
  code = prettier.format(code, { semi: false, parser: 'babylon' })
}
if (!isProduction) {
  code = prettier.format(code, { semi: false, parser: 'babel' })
}
    本栏目推荐文章
  • 【Leetcode1949. 坚定的友谊】使用MySQL在无向图中寻找{"CompleteTripartite", {1, 1, 3}}这个pattern
  • Python中出现"No module named 'requests'"的图文解决办法
  • 在Windows上出现"localhost拒绝连接”的问题
  • "nginx.conf" E514 : write error (file system full?)
  • 加了@SessionAttributes("uid")退出登陆后如何清除session
  • cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
  • jni Exception in thread "main" java.lang.UnsatisfiedLinkError:
  • [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
  • [转帖]京东大佬细说:Nginx反向代理时保持长连接,看完直呼"学到了!"
  • "Imagine" 歌词
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们