怪事:组件扩展名用.ts编译出错,改成.js编译就正常?
-
怪事:组件扩展名用.ts编译出错,改成.js编译就正常?
错误 组件编译 组件src/components/MySwiper/index.ts编译失败!
微信端错误提示:
VM27581:1 jsEnginScriptError
Component is not found in path "components/MySwiper/index" (using by "pages/home/index");onAppRoute
Error: Component is not found in path "components/MySwiper/index" (using by "pages/home/index")
at H (WAService.js:1:1302208)
at H (WAService.js:1:1302412)
at WAService.js:1:1319968
at Module.Fe (WAService.js:1:1320547)
at Function.value (WAService.js:1:1350860)
at Tt (WAService.js:1:1366302)
at WAService.js:1:1370401
at xt (WAService.js:1:1370894)
at Function.<anonymous> (WAService.js:1:1374284)
at i.<anonymous> (WAService.js:1:1343799)
-
ts 文件需要编译到 js