info Writing bundle output to:, …/Library/Developer/Xcode/DerivedData/TestLatest-bmejjnfdwhzdfmekjsboazxvpbnj/Build/Products/Debug-iphoneos/TestLatest.app/main.jsbundle
info Done writing bundle output
info Copying 5 asset files
info Done copying assets
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions…js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (…/node_modules/@expo/config/node_modules/fs-extra/lib/mkdirs/index.js:3:44)
ah, you are using an unsupported node version. see: Installation - Expo Documentation - we recommend using the latest version or the latest LTS release
I’ve got the same issue: SyntaxError: Unexpected token { in fs-extra. OS: X 10.15.6, Xcode: Version 12.0 beta 6 (12A8189n).
$ npm --version
6.14.6
$ node --version
v12.18.3
$ expo-cli --version
3.25.1
$ npm info expo-updates version
0.2.14
$ npm info expo version
38.0.9
$ npm info react version
16.13.1
$ npm info react-native version
0.63.2
I’ve reinstalled node_modules, cleared all caches, etc. without luck. Even after updating to latest expo-updates with npm i expo-updates@0.3.1, running npx pod-install still I get the same error.
Thanks for the quick reply. I’m on node v12.18.3, which seems to be LTS, and so I assume this node version is compatible? Is there anything which needs to be done beyond what I’ve done (reinstalling node_modules, clearing cache, etc.) to make it work?
Unfortunately no - I think I’ve left this project on Expo 37 and not revisited since my post above. I imagine I’ll revisit this sometime in the next few months, so hopefully there is a solution then!