Skip to content
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

Compilation error: When accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModule #13

Open
SerVB opened this issue Nov 23, 2020 · 2 comments

Comments

@SerVB
Copy link

SerVB commented Nov 23, 2020

I have many compilation errors on 0.0.6 and 0.0.7. For example, on the following lines:

console.log("Can't load the URL")
val isMac = process.platform == "darwin"

Workaround I use is to define my own declarations:

// console is taken from kotlin stdlib
external val process: dynamic
external val __dirname: dynamic
@DRSchlaubi
Copy link

happens on process api too

@Anigif
Copy link

Anigif commented May 15, 2021

Would be interested in finding a solution for this as well, since I'm getting the error when including this lib to be used with another nodejs lib. I think this is a related issue: Kotlin/dukat#106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants