Fork me on GitHub
#cljsrn
<
2021-03-30
>
hkjels18:03:35

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..?

joshmiller20:03:26

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.

joshmiller20:03:24

@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

joshmiller20:03:18

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.

hkjels22:03:39

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

hkjels22:03:56

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

hkjels22:03:35

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

hkjels22:03:30

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

hkjels22:03:44

Just need to figure out what that is