-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
版本更新后webpack报错 #5452
Comments
可以把你的项目打个 zip 发到这里,不然没有办法排查 |
我按照文档添加了入口与query,本地运行没有问题,打包的时候出现以上找不到antd-mobile/lib/*** |
你的截图没有看出问题。可以把你的项目打个 zip 发到这里,不然没有办法排查 |
项目超过25m |
可以将代码提交到一个新仓库,方便我们 clone |
请提交到github。。。。你这链接还需要登录验证 |
|
你 |
@bearguo 提供一下最小复现代码 |
Hi, wwb-xigua. It seems that this issue is a bit vague and lacks some necessary information. It is recommended to read How To Ask Questions The Smart Way. 看起来这条 issue 描述得有些模糊,缺少一些必要的信息,推荐阅读一下提问指引。 |
@wwb-xigua 你的问题看起来 @IronKinoko 已经在这里回复了 @bearguo 如果你还遇到了类似的问题,可以考虑单独再提个 issue,并且附上复现 demo |
Version of antd-mobile
5.16.1
Operating system and its version
Others
Browser and its version
No response
Sandbox to reproduce
No response
What happened?
升级了版本,从2.3.4->5.16.1,
需求:同时保留了两个版本
方法: "antd-mobile": "^5.16.1",
"antd-mobile-v2": "^2.3.4",
impot {***} from 'antd-mobile'
错误:导入插件的时候找不到lib文件(node-modules)
尝试:手动修改了webpack中
{
libraryName: "antd-mobile",
libraryDirectory: 'es',
style: true
}
第二报错
![image](https://user-images.githubusercontent.com/76981528/177741949-c0f4a9ad-dd13-4618-9238-e5af0d2eaa6c.png)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: