Open
Conversation
这里相对路径的写法,在自定义[ UNI_INPUT_DIR ] 时,会出现找不到组件,easycom注入失败的问题
Author
|
BUG场景:使用cli编译项目,自定义UNI_INPUT_DIR,且easycom注入的组件不在uni_modules或components里时 |
Member
|
感谢你提交 PR,我看到代码在尝试拓展 easycom 的选项,举一个更具体的使用场景吧,也方便测试和验证。 目前 easycom 规范中 https://uniapp.dcloud.net.cn/component/#easycom ,会在 uni_modules/ 和 components 查找,具体如何会查询不到,你放入到哪个目录了? |
Author
|
@Otto-J 场景步骤如下: 也就是说,全局变量UNI_INPUT_DIR会影响easycom寻找组件。 解决办法(二选一): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这里相对路径的写法,在自定义[ UNI_INPUT_DIR ] 时,会出现找不到组件,easycom注入失败的问题