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

按需加载,运行一直报错 #2130

Open
pxr-mm opened this issue Jul 28, 2023 · 16 comments
Open

按需加载,运行一直报错 #2130

pxr-mm opened this issue Jul 28, 2023 · 16 comments

Comments

@pxr-mm
Copy link

pxr-mm commented Jul 28, 2023

This dependency was not found:

  • vxe-table/lib/vxe-table in ./src/main.js

To install it, you can run: npm install --save vxe-table/lib/vxe-table

@xxwangkaimin
Copy link

第一次使用,按需引入一直报错,也是服了

@shawn-web
Copy link

shawn-web commented Jul 28, 2023

同样的问题,在线等,本地编译是好的,流水线跑打包的时候会有这个问题

@pxr-mm
Copy link
Author

pxr-mm commented Jul 30, 2023

就按需引入一直出现这个问题,全局引入就没有这样的问题了

@jalen-yu
Copy link

jalen-yu commented Jul 31, 2023

babel-plugin-import新的版本导致的,使用1.13.6就不会有这个问题了,有点难受

@LXang723
Copy link

babel-plugin-import新的版本导致的,使用1.13.6就不会有这个问题了,有点难受

感谢 ,找了快两个小时了

@turning1998
Copy link

+1 都有这个问题

@pxr-mm
Copy link
Author

pxr-mm commented Jul 31, 2023

要指定版本的才行,我用babel-plugin-import 1.13.8版本都不行

@jalen-yu
Copy link

要指定版本的才行,我用babel-plugin-import 1.13.8版本都不行

嗯,前几天更新的,修改了名称正则转换的规则

@lisha2015
Copy link

一样的问题,连旧版本的babel-plugin-import ^1.13.3都是一样的。这问题应在其它社区多转一转,解救众码农。

@ChrisLuckComes
Copy link

babel-plugin-import新的版本导致的,使用1.13.6就不会有这个问题了,有点难受

感谢

@makai1027
Copy link

babel-plugin-import新的版本导致的,使用1.13.6就不会有这个问题了,有点难受

感谢大佬,卡了一个小时了

@zerotower69
Copy link

真是服气,这个1.13.8的版本,我公司电脑没问题,我电脑就不行了,环境都一样。

@zerotower69
Copy link

现在发现还有问题,1.13.6换了依旧出问题的,需要把package.json中的版本号的“^”这个小箭头拿下,不知道为什么这样,但是很有效。(想骂人...)

@imaxing
Copy link

imaxing commented Feb 20, 2024

babel-plugin-import新的版本导致的,使用1.13.6就不会有这个问题了,有点难受

感谢大佬, 实测有效 :)

@flashblood
Copy link

This dependency was not found:

  • vxe-table/lib/header/style in ./src/main.js 这个什么错误呢?

@xuliangzhan
Copy link
Collaborator

xuliangzhan commented Apr 16, 2024

按需加载按需加载按照文档配置就行了
#1805
#2130

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