Results 12 comments of John Li

http://hammercui.github.io/post/react-native%E5%A1%AB%E5%9D%91%E9%9B%86%E9%94%A6%EF%BC%9Aandroid%E7%89%88/ 1) 修改 compile "com.facebook.react:react-native:0.19.+" 为 compile "com.facebook.react:react-native:0.20.+" http://bbs.reactnative.cn/topic/1494/module-0-is-not-a-registered-callable-module 2) npm install --save [email protected] works for me. 但是发现有很多warning……可能还是版本不兼容的缘故……

[build.log](https://github.com/user-attachments/files/23281930/build.log)

``` xyz.meedu.admin/src/components/tree-category/index.tsx(49,25): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/components/tree-category/index.tsx(50,23): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/components/tree-category/index.tsx(50,23): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/components/tree-category/index.tsx(52,46): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/components/tree-category/index.tsx(52,46):...

`xyz.meedu.admin/src/components/upload-video-item/index.tsx(9,19): error TS2307: Cannot find module 'vod-js-sdk-v6' or its corresponding type declarations. xyz.meedu.admin/src/components/upload-video-item/index.tsx(10,22): error TS2307: Cannot find module 'plupload' or its corresponding type declarations. xyz.meedu.admin/src/components/upload-video-item/index.tsx(108,22): error TS7006: Parameter 'up' implicitly...

> xyz.meedu.admin/src/components/user-import/index.tsx(113,50): error TS2769: No overload matches this call. Overload 1 of 3, '(worksheet: WorkSheet, opts?: Sheet2JSONOpts | undefined): unknown[]', gave the following error. Argument of type 'WorkSheet | undefined'...

> xyz.meedu.admin/src/js/htmlToPdf.ts(2,25): error TS2307: Cannot find module 'html2canvas' or its corresponding type declarations. xyz.meedu.admin/src/js/htmlToPdf.ts(3,19): error TS2307: Cannot find module 'jspdf' or its corresponding type declarations. xyz.meedu.admin/src/js/htmlToPdf.ts(28,23): error TS7006: Parameter 'canvas'...

exactOptionalPropertyTypes: true 是 TypeScript 的严格模式配置,要求可选属性的类型必须显式包含 undefined

> xyz.meedu.admin/src/pages/course/create.tsx(60,13): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/pages/course/create.tsx(62,20): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/pages/course/create.tsx(63,20): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/pages/course/create.tsx(65,26): error TS2532: Object is possibly 'undefined'. xyz.meedu.admin/src/pages/course/create.tsx(67,13):...

> xyz.meedu.pc/src/store/user/loginUserSlice.ts(1,29): error TS2307: Cannot find module '@reduxjs/toolkit' or its corresponding type declarations. xyz.meedu.pc/src/store/user/loginUserSlice.ts(44,17): error TS7006: Parameter 'stage' implicitly has an 'any' type. xyz.meedu.pc/src/store/user/loginUserSlice.ts(44,24): error TS7006: Parameter 'e' implicitly has...

> > @ build D:\Project\meedu > set NODE_OPTIONS=--max-old-space-size=8192 && tsc && vite build xyz.meedu.admin/src/pages/course/video/import.tsx(35,49): error TS2538: Type 'undefined' cannot be used as an index type. xyz.meedu.admin/src/pages/member/detail.tsx(247,19): error TS2322: Type 'string...