skip to Main Content

I write in terminal npm start and after that I choose to run in web version. And i get this error
I tried to fix this problem like that "npm install react-native-web" But it didn’t work

  • It looks like you’re trying to use web support but don’t have the required dependencies installed.

  • Please install react-native-web@~0.18.7, [email protected],
    @expo/webpack-config@^0.17.0 by running:

  • npx expo install react-native-web@~0.18.7 [email protected]
    @expo/webpack-config@^0.17.0

  • If you’re not using web, please ensure you remove the "web" string
    from the platforms array in the project Expo config.

3

Answers


  1. try this command: expo start –web

    Login or Signup to reply.
  2. Install using this command:

    1. Open Visual Studio Code terminal in the folder to install
    2. npx expo install react-native-web@~0.18.7
    3. npm install @expo/webpack-config@^0.17.0
    4. npm install [email protected]
    5. Run this app with npm start
    Login or Signup to reply.
  3. Installing both with legacy peer deps worked for me

    npm i react-native-web --legacy-peer-deps
    npm i react-dom --legacy-peer-deps
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search