I have been trying to start a new expo app for days and i can’t get anywhere. There’s always a new error. I have tried everything from upgrading ruby version to switching node versions, even switched macbooks, but i have the same issue.
I create a new app using:
npx create-expo-app name-of-app
And then i run it by npm start
Then, when i press “w” for webview, i get the message that i need to install react-native-web@~0.18.9, react-dom@18.1.0, @expo/webpack-config@^0.17.2 in order to add web support.
So like it says, i run:
npx expo install react-native-web@~0.18.9 react-dom@18.1.0 @expo/webpack-config@^0.17.2
But that fails, with the error:
zsh: no matches found: @expo/webpack-config@^0.17.2
So then i try to install the the two first ones with npm i, and then i install @expo/webpack-config individually without version number.
Then, when i try to run the app in web again, the browser console is full of errors that say:
bundle.js:43008 Uncaught Error: Cannot find module ‘inline-style-prefixer/lib/plugins/backgroundClip’
and
Uncaught ReferenceError: process is not defined
and
Module not found: Can’t resolve ‘inline-style-prefixer/lib/plugins/backgroundClip’
So then i try to npm install inline-style-prefixer, even delete node_modules and package-lock.json and npm i again, but it’s the same result every time. I have no clue what to do anymore. I can’t get anywhere!
Also, when i try to npm run ios i get this error:
Error: xcrun exited with non-zero code: 2
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Unable to boot device because we cannot determine the runtime bundle.
No such file or directory
Does anyone have a clue what is going on? Am i doing anything wrong? I can’t find any answers and i’m so lost and i want to give up