Expo: CRNA: run newly created project due to CORS header missing in hashAssetFiles

Created on 23 Jan 2018  路  1Comment  路  Source: expo/expo

I upgraded CRNA to latest version (1.0.0), created a new project and simply run yarn run android.

I got these errors and was unable to run it on device

image

Failed to load http://192.168.0.34:19003/node_modules/react-native-scripts/build/bin/crna-entry.delta?platform=android&dev=true&minify=false&hot=false&assetPlugin=/Users/sebastienlorber/test-crna/node_modules/expo/tools/hashAssetFiles: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:19003' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Most helpful comment

I have no idea what has happened. All my expo projects refused to start after I had this bug.

I tried everything:

  • Clear all caches/packagers etc
  • Restart computer/chrome
  • ...

It seems what have fixed the problem is to uninstall and reinstall the Expo client from my Android device

>All comments

I have no idea what has happened. All my expo projects refused to start after I had this bug.

I tried everything:

  • Clear all caches/packagers etc
  • Restart computer/chrome
  • ...

It seems what have fixed the problem is to uninstall and reinstall the Expo client from my Android device

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arunxampr picture arunxampr  路  3Comments

pcooney10 picture pcooney10  路  3Comments

muescha picture muescha  路  3Comments

rollymaduk picture rollymaduk  路  3Comments

w4ndry picture w4ndry  路  3Comments