question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'TurboModuleRegistry' is not exported from 'react-native' react-native-web

See original GitHub issue

Description

I am getting this error:

Failed to compile.

./node_modules/react-native-reanimated/src/reanimated2/NativeReanimated.js
Attempted import error: 'TurboModuleRegistry' is not exported from 'react-native'.

I upgraded react native to 0.63.3, and used react-native-reanimated version 2.0.0-alpha.7

I am getting this error for react-native-web.

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
calendeecommented, Nov 19, 2020

@jakub-gonet Using patch-package with your latest commits resolved the warning for me. Thanks!

0reactions
Shing-Hocommented, Nov 19, 2020

Actually, I didn’t try the alpha version. I was trying the 1.13 and 1.13 is working now after I changed the sdkVersion in app.json

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native/Typescript - Error Module '"react-native"' has no ...
In my case I needed to update my @types/react-native dependency in package.json to "@types/react-native": "^0.63.25",.
Read more >
Turbo Native Modules
import {TurboModuleRegistry} from 'react-native'; export interface Spec extends TurboModule { add(a: number, b: number): Promise<number>; }
Read more >
react-native-web - npm
Start using react-native-web in your project by running `npm i ... You'll notice that there is no reference to react-dom in components.
Read more >
react-native-web - Libraries - cdnjs - The #1 free and open ...
https://cdnjs.cloudflare.com/ajax/libs/react-native-web/0.18.10/exports/ ... -native-web/0.18.10/vendor/react-native/TurboModule/TurboModuleRegistry.min.js.
Read more >
React Native for Web
React Native Components and APIs on the Web · Accessible HTML. Support different devices and input modes, render semantic tags. · High-quality interactions....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found