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

fix: packages/element-ui中解决运行dev:ele报错 #736

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

BlackAndWhite-Web
Copy link

packages/element-ui运行dev:ele报错如下
20241106-150701

原因是@vue/cli-plugin-babel默认情况下,babel-loader 会排除 node_modules 依赖内部的文件。如果希望显性编译一个依赖的模块,你需要将其添加入 vue.config.js 中的 transpileDependencies 选项:

…bel-loader 会排除node_modules中的解析 需要加transpileDependencies 显示解析
@xaboy xaboy merged commit 3ce2e4a into xaboy:next Feb 3, 2025
xaboy added a commit that referenced this pull request Feb 3, 2025
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

Successfully merging this pull request may close these issues.

3 participants