使用原生小程序开发时候,会报下面的错误,
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了。 