Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type SyntaxError - RN VERSION 0.68.2, typescript 4.1.6 #79

Open
Enrickyb opened this issue Feb 4, 2025 · 5 comments
Open

Type SyntaxError - RN VERSION 0.68.2, typescript 4.1.6 #79

Enrickyb opened this issue Feb 4, 2025 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Enrickyb
Copy link

Enrickyb commented Feb 4, 2025

Image

RN VERSION: 0.68.2
is there related with RN version?

@gronxb
Copy link
Owner

gronxb commented Feb 4, 2025

What is the TypeScript version? This seems to be a TypeScript error.

@Enrickyb
Copy link
Author

Enrickyb commented Feb 4, 2025

"typescript": "4.1.6",

@gronxb
Copy link
Owner

gronxb commented Feb 4, 2025

Can you upgrade the TypeScript version of this project to 5 or higher?

@gronxb gronxb added the bug Something isn't working label Feb 4, 2025
@gronxb gronxb changed the title Type SyntaxError - RN VERSION 0.68.2 Type SyntaxError - RN VERSION 0.68.2, typescript 4.1.6 Feb 4, 2025
@gronxb gronxb added the good first issue Good for newcomers label Feb 4, 2025
@gronxb
Copy link
Owner

gronxb commented Feb 5, 2025

Update all packages versions to 0.6.5 and try it out.

It appears to be resolved. After scaffolding with my version 0.68.2, I didn’t encounter that type error.

@ShaunLWM
Copy link

ShaunLWM commented Feb 5, 2025

Had the same issue on

typescript: "4.8.4",
react-native: "0.71.11"

Created my own patch-package for this

diff --git a/node_modules/@hot-updater/react-native/src/index.ts b/node_modules/@hot-updater/react-native/src/index.ts
index 462a335..bb152d3 100644
--- a/node_modules/@hot-updater/react-native/src/index.ts
+++ b/node_modules/@hot-updater/react-native/src/index.ts
@@ -10,8 +10,8 @@ import { runUpdateProcess } from "./runUpdateProcess";
 import { hotUpdaterStore } from "./store";
 import { wrap } from "./wrap";
 
-export type * from "./wrap";
-export type * from "./native";
+export * from "./wrap";
+export * from "./native";
 
 export * from "./store";

But let me try out your new release tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants