Calling launch in kotlinjs causes a TypeError to be logged
See original GitHub issueIf you compile the following code and execute it:
fun main(args: Array<String>) {
launch {}
}
You get the following exception printed to the terminal:
TypeError: throwCCE is not a function
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
In Kotlin JS calling getHours on a date gives TypeError
and I'm getting "TypeError: date.getHours is not a function" as a runtime error in the browser. I don't quite understand this; does my...
Read more >Coroutines and the JS Compiler - JavaScript
Hi everyone! I am currently re-doing the kotlinx.coroutines library (or at least a really simplified version) in order to learn more about ...
Read more >Migrating our Kotlin/JS app to the new IR compiler
The easiest way to do this is to log your problems in the official Kotlin issue tracker. Give the Kotlin/JS IR compiler a...
Read more >The 10 Most Common JavaScript Issues Developers Face
If you need help figuring out why your JavaScript isn't working, consult this list of the 10 most common JavaScript issues from a...
Read more >JavaScript: Uncaught TypeError: n is not a function
This is a standard JavaScript error when trying to call a function before it is defined. This error occurs if you try to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like it could be solved by fixing #339 then
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