-
Notifications
You must be signed in to change notification settings - Fork 160
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
Uncaught ReferenceError: module is not defined #36
Comments
|
Hi @Hypnosphi Thank you very much for your answer. The require comes from the kotlin-extensions source code. I can't run a |
Please take a look at the pom of kotlin-extensions: <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jetbrains</groupId>
<artifactId>kotlin-extensions</artifactId>
<version>1.0.0-pre.19-kotlin-1.2.20</version>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-js</artifactId>
<version>1.2.20</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-html-js</artifactId>
<version>0.6.8</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project> The dependency to core-js is missing there. The core-js library is used in Object.kt line 39: @JsModule("core-js/library/fn/object/assign")
external fun <T, R : T> assign(dest: R, src: T): R |
@Leonya how do you handle this issue? |
@Hypnosphi we have it added into the project package.json |
Is it possible that this issue still exists?
And the error:
The line is this:
|
It does exist, you have to |
It sucks that this cannot yet be solved without Still, it's definitely less than optimal that we need to use |
I'm going to drop the |
When I include
kotlin-extensions
in my HTML page, I get this error in all browsers:This is line 93:
The
kotlin
module is loaded, butcore-js
seems new to me. I could not find any documentation in thekotlin-extensions
project which mentionscore-js
. As I includekotlin-extensions
via gradle and I can not find anythingcore-js
releated in the project, I assume thekotlin-extensions
artifact is missing the dependency tocore-js
.The text was updated successfully, but these errors were encountered: