Hi, starting from an app created with create-react...
# react
d
Hi, starting from an app created with create-react-kotlin-app how can add an external Kotlin dependency? For instance I have a KotlinJS project called my-lib and a Kotlin/React project called my-app. How can I use my-lib in my-app? Thanks 🙂
a
You could publish your library to NPM and then add it to
package.json
. You can also add local dependency to NPM (https://stackoverflow.com/questions/14381898/local-dependency-in-package-json) but then the build may not be reproducible on other machine. Hope this helps 🙂
d
Uhm... I did this using npm link, I think that it is the same, but the compiler don't find my library as kotlin library. Maybe that something it's wrong. Later I will retry. Thanks for the answer.
g
I wonder this as well