Now when I do `gradlew :run`, I get `ReferenceErro...
# javascript
v
Now when I do
gradlew :run
, I get
ReferenceError: NodeJS is not defined
. 😞 First line where it happens is
var ReadableStream = NodeJS.ReadableStream;
NodeJS.ReadableStream
comes from Dukat generated files for
@actions/http-client
and is defined in
kotlinx-nodejs
0.0.6
. What do I need to do to have those included properly? If I navigate from the
http-client
file via
Ctrl+Click
, a (pseudo?-)file inside the
0_NodeJS.knm
is opened that does not have any
@JsModule
annotation,
package NodeJS
and
@file:JsQualifier("NodeJS")
.
@vladimirsitnikov don't you have any idea maybe? You used the
kotlinx-nodejs
package too, didn't you?
If anyone is interested, this was actually caused by the IR backend it seems. After I replaced
js(IR)
with
js
this error vanished.
v
I might be a bit late here, yet I faced the same issue and reported it as https://youtrack.jetbrains.com/issue/KT-40964
👌 1