-
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
升级到2.0.0-beta.10,统一接口的多端文件多端脚本逻辑出错 #5175
Comments
CC @luckyadam |
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
你在项目中使用了别名 const path = require('path');
config={
alias: {
'@src': path.resolve(__dirname, '../src')
},
}
|
已经加了,并不是这个原因 |
@myNameCao 这个你们应该可以重现的,太明显了 |
@myNameCao 或者你们把相应的源码给我调试下,看下是什么原因导致 |
@myNameCao 是在mini-runner这一块的吗?我找到组件的适配源码,但是多端方法适配还没有找到,不知道是在那plugin里 |
问题描述
如图所示为getTopStatus文件夹跨端的脚本文件结构,在组件引用并调用方法时出现,./src/components/top/index.weapp.js
Module not found: Can't resolve '@src/utils/getTopStatus/index' in '/taro-lab/src/components/top'
编译失败的情况。
复现步骤
期望行为
无论执行以下代码段都运行成功
报错信息
系统信息
The text was updated successfully, but these errors were encountered: