I was just trying to add it to a small project built with create-react-kotlin-app (which I despise while finding useful)
c
chadmorrow
03/05/2018, 5:35 PM
This is just a side question because I’m curious. Why do you say you despise create-react-kotlin-app?
a
araqnid
03/05/2018, 5:37 PM
any time anything goes wrong with it, you have no handles for debugging as all the implementation is locked away. well, you can eject, at which point you see how ludicrously complex the configuration is. in this case, I had to eject to even add another library as a dependency, because either that's not anticipated usage or simply not documented.
araqnid
03/05/2018, 5:37 PM
so when it's working it's fine and a useful bootstrap. as soon as it goes wrong, it's a source of screaming frustration
c
chadmorrow
03/05/2018, 5:38 PM
Ah, totally get that. Thanks!
chadmorrow
03/05/2018, 5:40 PM
were you unable to add dependencies through npm/yarn in general or were you trying to add a git repo or local file as a dependency? I’ve not had issues installing from npm/yarn but had a hell of a time getting a git repo to work correctly
a
araqnid
03/05/2018, 5:43 PM
I could add the dependency to npm fine, and added it to the IntelliJ module, but it needs passing through to the KotlinWebpackPlugin config in the Webpack config too -- I have no idea how to tell the create-react-kotlin-app scripts to do that (there is basically no documentation)
araqnid
03/05/2018, 5:45 PM
and for whatever reason, errors in the app it produces cause the Chrome tab running it to totally lock up, with no discernible reason why