Fork me on GitHub
#cljsrn
<
2020-09-18
>
thomas17:09:08

I have just started a new `expo-cljs-template` project and I am getting this error: Unable to resolve "WebSocket" from "js/figwheel-bridge.js" any idea what could be going wrong. I did update the Expo client to 38.0.0.

Michaël Salihi18:09:02

@thomas How did you upgrade Expo? Did you go incrementally ?

thomas18:09:16

no, I just bumped up the versions in app.json and package.json

Michaël Salihi18:09:53

OK. Expo recommanded to uprading incrementally as you can see on this page: https://docs.expo.io/workflow/upgrading-expo-sdk-walkthrough/ I just tried lein new expo you-project +reagent , then expo update 35.0.0 and the project run for me.

Michaël Salihi18:09:53

Since Expo v35, you can see the file app.json change little bit...there is no more "sdkVersion" line.

thomas18:09:19

cool thanks. I'll try that

Michaël Salihi18:09:02

Since the template is outdated, now I would recommanded to using fighweel-main or shadow-cljs: • Figwheel-main docs: https://figwheel.org/docs/react-native.html • Shadow-CLJS example repo: https://github.com/thheller/reagent-expo

Michaël Salihi18:09:08

Another repo for with Shadow-CLJS, Reagent + Re-frame: https://github.com/PEZ/rn-rf-shadow