-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Calling launch in kotlinjs causes a TypeError to be logged #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can't reproduce this problem on my machine. |
Sure, no problem. I've attached a same project. Just cd in to the dir and run |
I had the same bug and resolved it, when you include kotlin and kotlinx-coroutines-core in your package.json, kotlinx-coroutines-core will download kotlin as a dependency and put it in its own node_modules, leading to a conflict between kotlin installed by package.json and the one installed by kotlinx-coroutines-core, if you remove kotlin from package.json everything works fine. It looks like the kotlinx-coroutines-core npm package can't detect when the package.json already contain kotlin |
Seems like it could be solved by fixing #339 then |
This fixed Kotlin#339 and Kotlin#340
@elizarov any idea when this will be released? Or are there snapshot builds we could use? Coroutines are basically unusable in JS, seems like a big deal. 😕 |
If you compile the following code and execute it:
You get the following exception printed to the terminal:
The text was updated successfully, but these errors were encountered: