Hello good people, I’m having a troublesome issue and I’m at a standstill with my development.
Everytime I try to use Expo, it is unable to resolve additional files that I try to add to the project.
For example, after building a clean project, running expo on my device has been fine, real time updates working as expected. As soon as I add a new file and import it, it is unable to resolve it. Yes, I’m positive the file is there.
Unable to resolve "./components/NewFile" from "App.js"
This is the same issue I have with expo on any tutorial I try to follow.
Hey @bauervision, sorry that you’re having this issue with Expo CLI.
To fully clear the internal state of the CLI, could you try removing the .expo folder in your project folder and then restarting (again) with expo start -c? Also make sure that you’re running the start command from your project root folder.
If that doesn’t help, could you also copy paste the contents of your app.json and the output from running expo diagnostics?
thanks for getting back with me @fson, none of my projects are working now. I’m trying to do a clean install in a fresh project but I can’t get past it crashing on install:
This looks like a problem with permissions. Could you manually delete the folder at C:\Users\AppData\Roaming\npm\node_modules\expo-cli (you may need to use an Admin user) and then re-install expo-cli?
Expo CLI 2.4.3 environment info:
System:
OS: Windows 10
Binaries:
Yarn: 1.12.3 - C:\Users\Mike.Bauer\AppData\Roaming\npm\yarn.CMD
npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5014246
Diagnostics report:
\[09:50:08] Request failed with status code 500
[09:50:08] Set EXPO_DEBUG=true in your env to view the stack trace.