Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发布的源码中包含babel引用,导致启动报错 #66

Open
kooriookami opened this issue Nov 20, 2023 · 0 comments
Open

发布的源码中包含babel引用,导致启动报错 #66

kooriookami opened this issue Nov 20, 2023 · 0 comments

Comments

@kooriookami
Copy link

我是用的项目是Vue Cli 5版本,安装el-select-tree后启动会报一下错误。原因是源码中有babel的引用,项目又对node_modules进行了编译。
image

目前我需要手动让babel忽略整个node_modules包,这样才能正常进入项目。

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  ignore: [
    /node_modules/
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant