Closed Alderr closed 7 years ago
Hmm.. That's weird. I dunno much about windows to say what's the issue. The simple workaround will be to change the preset to expo
from react-native
in .babelrc
.
After changing it, make sure to run npm start -- --reset-cache
Cool, it works but now haha I'm wondering why this works and how this will affect me when using react-native-vector-icons in my CRNA projects.
@Alderr this is a mixed vanilla + CRNA project, that's why you faced the issue. I believe no one has done it before, so don't know the proper way yet.
You won't face any such issue with normal CRNA projects.
I am using Expo on my HTC Desire 530 to test it. The error mentioned in title does not show when I run it from the Expo display, it happens when I run it from my machine(npm start -> server launches -> takes picture of QR Code).
Disclaimer: First time ever really using any of these libraries/tech/etc so Im going to show every single step I've done that brought me to the error.
[1] Cloned repo, npm install, yarn. Nothing wrong so far.
[2] I run "npm start" and this error pops up.
[3] Googled this. A Babel.rc guide So, I ended up just removing "BABEL_ENV" from npm start command in package.json and doing it in the command prompt.
[4] Packager runs, I get my QR Code and I scan it.
[5] Error shows up and a lot of the icons end up missing or replaced with something else.