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打包带图片资源组件报error TS2307: Cannot find module '../assets/authForbit.png' #482

Closed
yang200258 opened this issue Apr 25, 2022 · 4 comments

Comments

@yang200258
Copy link

报错信息:
image
image

tsconfig已加入配置:
image
images.d.ts文件内容如下:
image
使用rollup可以正常打包,但是babel不行

@wangjingyolo
Copy link

有解决办法了吗?同求

@yang200258
Copy link
Author

yang200258 commented May 20, 2022

有解决办法了吗?同求

暂时没有用babel了。用rollup,
image
image

@kimhou
Copy link

kimhou commented Jun 6, 2022

+1

@PeachScript
Copy link
Member

参考:#227 (comment)
也可以切换到 father 4 RC,不再有这个怪异的问题:https://github.com/umijs/father-next

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

4 participants