-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
微信小程序插件引用图片路径编译报错 #4231
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
@IDrinkMoreWater 复现不了,修改后并没有报错 |
@Chen-jj 你是用jsx编译的所以正常,init项目的时候选择typescript就能重现了,应该是这个原因,我用脚手架从新初始化了一个新的空项目,安装上面的复现步骤是可以重现的 |
@IDrinkMoreWater 是不是用错命令,应该是 |
@Chen-jj 嘉健兄能加微信聊么,确实没用错命令啊,我用taro build --plugin weapp --watch不报错, taro build --plugin weapp才报错哦 |
问题描述
微信小程序插件引用图片路径编译报错
复现步骤
[复现问题的步骤]
期望行为
页面正常编译正常引用图片
报错信息

完整错误信息:
(node:9132) UnhandledPromiseRejectionWarning: Error: EEXIST: file already exists, mkdir 'D:\Document
s\Desktop\plugin\miniprogram\plugin\pages\list\images'
(node:9132) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated eit
her by throwing inside of an async function without a catch block, or by rejecting a promise which w
as not handled with .catch(). (rejection id: 1)
(node:9132) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future
, promise rejections that are not handled will terminate the Node.js process with a non-zero exit co
de.
系统信息
Taro CLI 1.3.11 environment info:
System:
OS: Windows 7
Binaries:
Node: 8.11.2 - C:\Program Files (x86)\nodejs\node.EXE
npm: 5.6.0 - C:\Program Files (x86)\nodejs\npm.CMD
其他重要补充信息:
以上示例代码,发现只import引用1张图片时不会报错,2张或2张以上时才会发现报错
The text was updated successfully, but these errors were encountered: