编译一堆报错的吗?
10:19:42.344 23 | this.$element.dispatchEvent(event)
10:19:43.326 Cannot create property 'code' on string 'load_transformed failed
10:19:43.326 Caused by:
10:19:43.326 0: Bundler.load() failed
10:19:43.327 1: Bundler.loader.load(/Users/dubin/dubin/temp/unix/hello-uni-app-x/unpackage/dist/dev/.uvue/pages/API/unicloud/unicloud/cloud-function.uvue?type=page) failed
10:19:43.327 2:
10:19:43.327 x A type annotation is required on a return.
10:19:43.327 at pages/API/unicloud/unicloud/cloud-function.uvue:85:1
10:19:43.327 82 | this.notify(error.errMsg, '错误')
10:19:43.327 83 | })
10:19:43.327 84 | },
10:19:43.327 85 | ,-> jest_UniCloudError() {
10:19:43.327 86 | | return new Error() instanceof UniCloudError
10:19:43.327 87 | -> } 10:19:43.327 88 | } 10:19:43.327 89 | }) 10:19:43.327
----
10:19:43.327
10:19:43.327 3: error was recoverable, but proceeding would result in wrong codegen
10:19:43.327 4: Syntax Error'
10:20:34.369 开始差量编译...
10:20:38.197 error: 类型不匹配: 推断类型是String,但预期的是Page?(可为空的Page)。
10:20:38.197 at uni_modules/uni-stat/utssdk/common/utils/pageInfo.uts:232:11
10:20:38.197 230| }
10:20:38.198 231| // @ts-ignore
10:20:38.198 232| page = '123'
10:20:38.198 | ^
10:20:38.198 233| //page = page_now.vm!
10:20:38.198 234| }
10:20:38.198 error: Unresolved reference: $page
10:20:38.198 at uni_modules/uni-stat/utssdk/common/utils/pageInfo.uts:237:26
10:20:38.198 235|
10:20:38.198 236| // @ts-ignore
10:20:38.198 237| const pageStyle = (page.$page as UniPage).getPageStyle()
10:20:38.198 | ^
10:20:38.198 238| const titleText = pageStyle['navigationBarTitleText'] ?? ''
10:20:38.198 239| return titleText as string
10:20:38.198 error: Unresolved reference: vm
10:20:38.199 at uni_modules/uni-stat/utssdk/common/utils/pageInfo.uts:253:14
10:20:38.199 251| // TODO 正常来说,调用当前方法的地方只在 生命周期内,数组内最少会有一个页面,所以理论上是不存在获取不到的情况的
10:20:38.199 252| // @ts-ignore
10:20:38.199 253| return page.vm
10:20:38.199 | ^
10:20:38.199 254| }
10:20:38.199 255|
10:20:38.874 Cannot create property 'code' on string 'load_transformed failed
10:20:38.874 Caused by:
10:20:38.874 0: Bundler.load() failed
10:20:38.874 1: Bundler.loader.load(/Users/dubin/dubin/temp/unix/hello-uni-app-x/unpackage/dist/dev/.uvue/pages/API/unicloud/unicloud/cloud-function.uvue?type=page) failed
10:20:38.874 2:
10:20:38.874 x A type annotation is required on a return.
10:20:38.874 at pages/API/unicloud/unicloud/cloud-function.uvue:85:1
10:20:38.874 82 | this.notify(error.errMsg, '错误')
10:20:38.874 83 | })
10:20:38.874 84 | },
10:20:38.874 85 | ,-> jest_UniCloudError() {
10:20:38.874 86 | | return new Error() instanceof UniCloudError
10:20:38.875 87 | -> } 10:20:38.875 88 | } 10:20:38.875 89 | }) 10:20:38.875
----
10:20:38.875
10:20:38.875 3: error was recoverable, but proceeding would result in wrong codegen