Hi, do you have simpliest example? I want to do li...
# javascript
f
Hi, do you have simpliest example? I want to do library. For instance with kotlin frontend plugin. And I want to include bundle in js or typesript project and use it there
r
Hi Martin, I think this link might be helpful https://kotlinlang.org/docs/reference/js-interop.html
f
I read it before. Jut it doesn't work for me I want to use it in other typescript project But at first, I wanted to try, if I am able to see functions in javascript. So I tried to do require("path/to/web.js") and I got object. But I was unable to get function exampleFunc var web = require("path/to/web.js") web was object web.exampleFunc == undefined I also tried to import it with typescript style(imported as nodejs module with my declared index.d.ts), same result. I don't know what to do. There is no hello world app like this
I also tried like require("path/to/web.js").net.aliceintokyo.web.HelloWorld
r
Could you please remove
main
function and try the same again?
Oh, sorry, I haven't seen your last post in channel