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 read property 'useMemo' of null #28471
Comments
This issue wasted my whole last night and today, unlucky me. Probably they pushed some changes yesterday. things were okay in the morning. |
I fixed this issue by using the following versions in package.json file { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
hi there! here's what happened
how you can solve this right nowyou can do any of the following things:
what we can dotbd! maybe we can update react-helmet-async? let us know if you have suggestions |
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
i locked the issue for now because i want to make sure that #28471 (comment) isn't buried - that comment explains what causes this issue and how to work around it. we'll follow up here when it's resolved systematically! |
this is resolved in expo-router@3.4.10 - see 4357c8e for context |
Minimal reproducible example
https://github.com/bestform/expo-router-bug
Which package manager are you using? (Yarn is recommended)
npm
If the issue is web-related, please select the bundler (
web.bundler
in theapp.json
)None
Summary
When using expo-router 3.4.9, the app does not start. Instead it says:
TypeError: Cannot read property 'useMemo' of null
What I did:
npx create-expo-app -t
As a template I chose TypeScript (Blank)
npx expo install expo-router react-native-safe-area-context react-native-screens expo-linking expo-constants expo-status-bar react-native-gesture-handler
mkdir app
mv App.tsx app/index.tsx
Change "main" entry in package.json to
expo-router/entry
Add a "scheme" to app.json
Run the Expo go server using
npx expo start
What I expected:
The App is running in the expo go app showing app/index.tsx
What happened instead:
An error screen saying:
TypeError: Cannot read property 'useMemo' of null
This is the full stack trace:
And:
Both traces are being printed twice. So the first part is printed twice and then the second part is printed twice.
Environment
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 10.5.2 - /usr/local/bin/npm
Watchman: 2023.10.02.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
IDEs:
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
npmPackages:
expo: ~50.0.14 => 50.0.17
expo-router: ~3.4.9 => 3.4.9
react: 18.2.0 => 18.2.0
react-native: 0.73.6 => 0.73.6
Expo Workflow: managed
The text was updated successfully, but these errors were encountered: