-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I add in sample line:
import kotlin.math.*;
and
println(acos(1))
And webpack crashed:
> webpack-kotlin-loader@0.3.2 compile-simple /home/lionzxy/IdeaProjects/kotlin-loader
> rm -rf examples/simple/dist && webpack --config examples/simple/webpack.config
kotlin-js compilation failed.
examples/simple/test-file.kt:3:15: error: unresolved reference: math
import kotlin.math.*;
^
examples/simple/test-file.kt:7:13: error: unresolved reference: acos
println(acos(1))
^
(node:10751) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined
(node:10751) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
How i can add kotlin library in code?
Metadata
Metadata
Assignees
Labels
No labels