Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

remax build -w -t wechat 启动的小程序,引用的小程序原生组件会报Component is not found in path #1992

Closed
jhmobile opened this issue Feb 8, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@jhmobile
Copy link

jhmobile commented Feb 8, 2023

remax build -w -t wechat 启动的小程序,引用的小程序原生组件会报
Component is not found in path "npm/_jhjr/react-native-cp/lib/apis/popup/index" (using by "init/index")(env: macOS,mp,1.06.2301040; lib: 2.29.2)

请问如何解决??

remax build -t wechat模式没有问题

@jhmobile jhmobile added the bug Something isn't working label Feb 8, 2023
@jhmobile jhmobile changed the title [BUG] remax build -w -t wechat 启动的小程序,引用的小程序原生组件会报Component is not found in path Feb 8, 2023
@watsonhaw5566
Copy link
Contributor

检查一下原生文件引用的路径,感觉是引用路径的问题。

@jhmobile
Copy link
Author

jhmobile commented Feb 9, 2023

路径没有问题,最后发现是分包导致的,只要设置分包,--watch模式就会提示Component is not found in path ,这个有办法处理吗?业务代码比较多的时候,不分包,无法进行手机预览

@watsonhaw5566
Copy link
Contributor

watsonhaw5566 commented Feb 9, 2023

现在还没办法处理这个问题,你要自己在 webpack 上琢磨一下了

@jhmobile
Copy link
Author

jhmobile commented Feb 9, 2023

好吧

@jhmobile jhmobile closed this as completed Feb 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants