-
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
custom-wrapper 找不到 #12239
Comments
@123417316 麻烦提供一下 demo |
3.5.2 同样的问题 |
3.4.14 俺也一样 |
求解,3.5.2 新初始化的项目,报这个错误 |
在 index.config.ts 里面临时加了以下代码解决
|
我是react+hook也是新建的项目报错 |
似乎是一个偶现的问题,需要区分是小程序本身的问题还是 Taro 的问题,请问一下各位:
此外,@brickspert 可以讲述一下是 Taro 编译时漏了什么东西,然后如何解决的吗?
|
刚才也遇到了,突然出现的问题,依赖版本没动过,应该不是 |
1、只有开发者工具报警告; 引用第三方组件报错: 以下临时方案可以解决
Originally posted by @brickspert in #12239 (comment) |
@Deain Webpack5 么?
这是同时做的还是控制了变量? |
控制变量,因为一开始是好的,中间写着写着,某一次编译完后就报错了,就一个一个尝试的。 webpack5、taro3.5.4/3.5.3 |
@Deain 找到 怀疑是 Webpack5 的文件产物输出时机和小程序开发者工具 watch 机制的冲突,所以试试每次编译时不清空 dist 目录再看看。 |
尝试了几次,需要配合reinstall依赖的三方包,只有当第一次编译出来可以正常运行时,后面才没问题。 |
@Chen-jj
|
@Deain 哪个 config.ts ? 另外能发一下出错时的包吗 |
我也遇到了这个问题,ts文件修改第一次热重载能生效,第二次就不行;修改样式文件热重载功能没有问题 |
就 |
@wjxforu 目前 Webpack5 不能开启开发者工具的热重载功能 |
我在使用taro开发微信小程序插件时,遇到了同样的问题,具体不知道是啥原因,尝试自己手动引入一下custom-wrapper组件解决了问题。custom-wrapper组件按照如下声明: |
我试着终止终端运行,重新执行npm run dev,小程序重新编译一次,发现就没这个问题。 |
3.6.22也有 |
taro4.0.0-beta 版本使用 vue3-pinia(Vue3 + Pinia 模板(https://pinia.esm.dev/))同样会报Component is not found in path "comp" (using by "pages/index/index")的错误 |
相关平台
微信小程序
小程序基础库: 2.25.2
使用框架: Vue 3
复现步骤
Component is not found in path "custom-wrapper" (using by "pages/home/index"),
Component is not found in path "comp" (using by "pages/home/index")
更新之后,所有页面都会报这个错
期望结果
不报错
实际结果
所有页面都会报这个错
环境信息
The text was updated successfully, but these errors were encountered: