{"error":"Error: Cannot find module 'expo/tools/hashAssetFiles'"} error instead of getting Expo app information that is needed for debugging on localhost:19000 host.Expo app starts debugging
This behaviour is connected to a bug described in this issue that reproduces on latest [email protected] package.
Until this situation is resolved you can use such solution:
vsmobile.vscode-react-native-0.x.x extension folder in your VS Code extensions folder.%USERPROFILE%\.vscode\extensions~/.vscode/extensions~/.vscode/extensionsnode_modules, find and delete xdl folder.vsmobile.vscode-react-native-0.x.x extension folder in terminal and run this commandnpm i [email protected] --no-save
Due to official Expo team commentary all RN projects that are going to be ran using expo must have installed expo package. To solve the issue run npm i expo --save-dev
I stumbled upon the same problem and after a while, I realized that the react-native commands were using the wrong package.
Instead of using this:
npm i -g react-native
Make sure you use this:
npm i -g react-native-cli
If it won't install (citing something about react-native already existing) then use the --force flag like this:
npm install -i -g --force react-native-cli
You might also need to run the installation command using sudo in case you have permission issues but I discourage this.
Due to official Expo team commentary all RN projects that is going to be ran using
expomust have installedexpopackage. To solve the issue runnpm i expo --save-dev
This solution not work for me
Hi @hadpro24, @HopeKD . Please describe your problems in separate issues.
Most helpful comment
Due to official Expo team commentary all RN projects that are going to be ran using
expomust have installedexpopackage. To solve the issue runnpm i expo --save-dev