cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
2021-03-30T18:11:35.017100Z

Anyone here using krell? I bumped into this issue https://github.com/vouch-opensource/krell/issues/121 then tried to downgrade npm etc, but that unleashes a whole bunch of other problems Am I better off with another way of working with react-native..?

joshmiller 2021-03-30T20:50:26.018200Z

I’m using krell but have not tried to upgraded to RN 17 yet. If you’re having trouble with it, you could give shadow-cljs a shot, I think a number of people here are on that and having good success.

joshmiller 2021-03-30T20:58:24.019800Z

@hkjels The --install-deps step doesn’t do anything apart from adding these :npm-deps to your package and installing: https://github.com/vouch-opensource/krell/blob/35786a94f4dd4bce4cf80542501e4d105184452a/src/deps.cljs

joshmiller 2021-03-30T20:59:18.020800Z

AFAIK you can just put those in package.json, npm install, and you’re fine. I would guess if there’s an issue with npm 7+ it’s because they broke how their options work or something.

2021-03-30T22:08:39.021700Z

Doing that gets me exactly as far as if I downgrade npm. I get a bunch of errors about functions not being exported from various files

2021-03-30T22:08:56.021900Z

Ex: Attempted import error: 'evaluate' is not exported from './krell_repl.js'.

2021-03-30T22:10:35.023200Z

Although, it looks like it should be:

module.exports = {
    evaluate: evaluate,
    onKrellReload: onKrellReload,
    onKrellCacheInvalidate: onKrellCacheInvalidate,
    onSourceLoad: onSourceLoad,
    getSocket: getSocket
};
It’s been a while since I’ve delpth with javascript and modules etc though

2021-03-30T22:25:30.024600Z

OK.. I think I’ve figured out what’s wrong. The babel configuration doesn’t support the type of exports that’s used in Krell Adding the correct babel plugin should do the trick

2021-03-30T22:25:44.024900Z

Just need to figure out what that is