question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calling launch in kotlinjs causes a TypeError to be logged

See original GitHub issue

If 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ansmancommented, May 1, 2018

Seems like it could be solved by fixing #339 then

1reaction
SeekDaSkycommented, May 1, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found