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.

universal project / brand new setup stops working at Expo v37, but works at Expo v36

See original GitHub issue

It might be related to this bug https://github.com/expo/expo-cli/issues/1765

But seems everything is updated already, so I just canceled that waiting and start expo start.

Then press the Run in the web browser button in the Expo Metro Bundler window

Soon, received lots of warnings in the console: image

And the app stops working image

It indicates it is trying to render the native part on the web.

The setup of the web is like this:

in the App.tsx:

I imported the Routes

import React from "react";
import { Routes } from "./routes/routes";
import { enableScreens } from "react-native-screens";
import { Platform } from "react-native";

if (Platform.OS === "ios" || Platform.OS === "android") {
  enableScreens();
}

const App: React.FC = () => {
  return <Routes />;
};

export default App;

The Routes is from 2 files:

  • routes.native.tsx
  • routes.tsx

That’s all.

How to fix it? Or I miss something?

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
EvanBaconcommented, Apr 1, 2020

This has been resolved in expo-cli@3.17.5 please update your CLI with npm install -g expo-cli

0reactions
brentvatnecommented, Apr 4, 2020

@LinusU - ensure you are using the latest expo-cli, and if that doesn’t resolve it, please provide a reproducible example and create a new issue 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Expo SDK
Learn how to incrementally upgrade the Expo SDK version in your project. We recommend upgrading SDK versions incrementally, one at a time. Doing...
Read more >
React Native Expo SDK version is outdated - Stack Overflow
This project uses SDK v37.0.0, but this version of Expo Go requires at least v39.0.0. How can I solve this problem?
Read more >
Tweets with replies by Expo (@expo) / Twitter
An open-source platform for making universal native apps with React. Expo runs on Android, iOS, and the web. - GitHub - expo/expo: An...
Read more >
Expo SDK 37 is now available - DEV Community ‍ ‍
After SDK 38, your ExpoKit apps in the App Store and Play Store will continue to run indefinitely, and to get bugfixes and...
Read more >
Add Login to your React Native App - Expo - Auth0
The Auth0 application is where you will configure authentication in your project. Configure an application. Use the interactive selector to create a new...
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