I'm new to Kotlin/JS. I'm trying to import a TypeS...
# javascript
s
I'm new to Kotlin/JS. I'm trying to import a TypeScript dependency. I added
generateExternals=true
to the gradle dependency and I get an error "Unresolved reference: JSX". Looking at the TypeScript definition, JSX is used but not imported. Is there a way to work around this?
b
Dukat (thing being used by
generateExternals=true
) is far from perfect still. Most of the time it's best to use generated externals as a starting point and then rewrite them as your own manually. I've written an article to help get started https://kotlinlang.slack.com/archives/C0B8L3U69/p1640888456418000
1
s
Ah, makes sense. Thanks!