使用原生小程序開發時候,會報下面的錯誤,
[ pages/button/button.json 文件內容錯誤] pages/button/button.json: [“usingComponents”][“second-component”]: “…/…/components/second-child/index”,在 C:/Users/***/WeChatProjects/miniprogram-1/components/second-child/second-child 路徑下未找到組件(env: Windows,mp,1.06.2405020; lib: 2.20.2)
檢查了一下,文件目錄也是ok的,解決方案,關閉微信開發者工具,然后重啟就ok了。