Hi I'm back to kotlin after the latest release of ...
# javascript
j
Hi I'm back to kotlin after the latest release of 2.0.20. Yesterday I would like create a kotlin multiplatform project with the js target on, react and react-dom from kotlin wrappers with the last released version and a sample configuration in the main. Then I use the gradle 'jsRun' task for compile and run the application but I got this error. Can anyone help me? I can't figure out where I wrong.
I found the problem but I don't figure out why the name of the file generated from webpack is called app.js
Oh maybe because the project's name where the KMP target was declared is "app". I'm trying to change the output file name as 'main.js' instead of 'app.js'
e
Yes, the default binary name is always tied to the module name.
j
Can I generate kotlin structures from typescript when I import a package by npm?
e
@Jerv Norsk not automatically. You can use tools like karakum and dukat (outdated currently).
Although, you most likely will have to modify files manually. If it's a small package, do it by yourself.
j
In fact I remember that npm had a generateExternals parameter for do it automatically, but then I got a warning about the deprecation of dukat (for now). I would like use react-spring in my project but it's not a small package
e
j
There is a section dedicated to kotlin-wrappers? I would like help to it's development
e
You mean a channel? In that case no, but you can ping people here
👍 1
j
Yeah a slack channel
Thank you for your support!
✔️ 1
e
See here how I do it when I need stuff quickly https://github.com/lppedd/kotlin-externals#initial-generation
👍 1
👍🏾 1