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

Cannot find name 'global'.ts(2304) #71

Closed
codler opened this issue Sep 20, 2019 · 3 comments · Fixed by #78
Closed

Cannot find name 'global'.ts(2304) #71

codler opened this issue Sep 20, 2019 · 3 comments · Fixed by #78
Labels
good first issue Good for newcomers

Comments

@codler
Copy link

codler commented Sep 20, 2019

Im getting Cannot find name 'global'.ts(2304) typescript error in App.tsx at global.HermesInternal. Im using VS code.

@MateusAndrade MateusAndrade added the good first issue Good for newcomers label Sep 24, 2019
@emin93
Copy link
Member

emin93 commented Sep 25, 2019

That's because of missing type definitions in @types/react-native (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native/globals.d.ts). If someone wishes to fix it, you could create a PR there and as soon as there's a new version, I'll include it in the template 🙂

@sudeepto-dutta
Copy link

@radko93 I have already bootstrapped my project using version 6.3.0 . How can I update this package without bootstrapping a new project ?

@radko93
Copy link
Collaborator

radko93 commented Oct 2, 2019

@sudeepto-dutta you can copy this file if you want https://github.com/react-native-community/react-native-template-typescript/blob/master/template/App.tsx. But you can just remove the Hermes from you App.tsx (you don't need it).

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

Successfully merging a pull request may close this issue.

5 participants