Skip to content

加入依赖后,无法打包编译 #18

Closed
@bashen1

Description

@bashen1

Expected Behavior

集成并正常编译使用

Current Behavior

按照文档集成,但是无法编译

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • React Native SQLite Storage Version used: 6.0.1-0.1.1
  • React Native version used: 0.72.5
  • Operating System and version (simulator or device): simulator
  • IDE used: 5.0.3.900
  • Link to your project:

Debug logs

1 ERROR: ArkTS:ERROR File: /Users/xxxx/Documents/GitHub/Update_Harmony/harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-sqlite-storage@+ppzp4k7b4ldlcyrw9w7z1igt3nkufcr3d+jyzef+os=/oh_modules/@react-native-oh-tpl/react-native-sqlite-storage/src/main/ets/SQLitePluginTurboModule.ts:1:10
 Module '"../../../../../../../../../entry/oh_modules/@rnoh/react-native-openharmony/ts"' has no exported member 'AnyThreadTurboModule'.


2 ERROR: ArkTS:ERROR File: /Users/xxxx/Documents/GitHub/Update_Harmony/harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-sqlite-storage@+ppzp4k7b4ldlcyrw9w7z1igt3nkufcr3d+jyzef+os=/oh_modules/@react-native-oh-tpl/react-native-sqlite-storage/src/main/ets/SQLitePluginTurboModule.ts:1:32
 '"../../../../../../../../../entry/oh_modules/@rnoh/react-native-openharmony/ts"' has no exported member named 'AnyThreadTurboModuleContext'. Did you mean 'TurboModuleContext'?


3 ERROR: ArkTS:ERROR File: /Users/xxxx/Documents/GitHub/Update_Harmony/harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-sqlite-storage@+ppzp4k7b4ldlcyrw9w7z1igt3nkufcr3d+jyzef+os=/oh_modules/@react-native-oh-tpl/react-native-sqlite-storage/src/main/ets/SQLitePluginPackage.ts:3:3
 '"../../../../../../../../../entry/oh_modules/@rnoh/react-native-openharmony/ts"' has no exported member named 'AnyThreadTurboModuleFactory'. Did you mean 'TurboModulesFactory'?


4 ERROR: ArkTS:ERROR File: /Users/xxxx/Documents/GitHub/Update_Harmony/harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-sqlite-storage@+ppzp4k7b4ldlcyrw9w7z1igt3nkufcr3d+jyzef+os=/oh_modules/@react-native-oh-tpl/react-native-sqlite-storage/src/main/ets/SQLitePluginPackage.ts:4:3
 '"../../../../../../../../../entry/oh_modules/@rnoh/react-native-openharmony/ts"' has no exported member named 'AnyThreadTurboModuleContext'. Did you mean 'TurboModuleContext'?


5 ERROR: ArkTS:ERROR File: /Users/xxxx/Documents/GitHub/Update_Harmony/harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-sqlite-storage@+ppzp4k7b4ldlcyrw9w7z1igt3nkufcr3d+jyzef+os=/oh_modules/@react-native-oh-tpl/react-native-sqlite-storage/src/main/ets/SQLitePluginPackage.ts:5:3
 Module '"../../../../../../../../../entry/oh_modules/@rnoh/react-native-openharmony/ts"' has no exported member 'AnyThreadTurboModule'.


6 ERROR: ArkTS:ERROR File: /Users/xxxx/Documents/GitHub/Update_Harmony/harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-sqlite-storage@+ppzp4k7b4ldlcyrw9w7z1igt3nkufcr3d+jyzef+os=/oh_modules/@react-native-oh-tpl/react-native-sqlite-storage/src/main/ets/SQLitePluginPackage.ts:15:47
 Property 'ctx' does not exist on type 'SQLitePluginTurboModulesFactory'.


7 ERROR: ArkTS:ERROR File: /Users/xxxx/Documents/GitHub/Update_Harmony/harmony/oh_modules/.ohpm/@react-native-oh-tpl+react-native-sqlite-storage@+ppzp4k7b4ldlcyrw9w7z1igt3nkufcr3d+jyzef+os=/oh_modules/@react-native-oh-tpl/react-native-sqlite-storage/src/main/ets/SQLitePluginPackage.ts:27:48
 Expected 0 arguments, but got 1.


COMPILE RESULT:FAIL {ERROR:8 WARN:96}
> hvigor ERROR: BUILD FAILED in 5 s 599 ms 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions