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

ReferenceError: self is not defined #2

Open
Mingo-233 opened this issue Oct 24, 2024 · 0 comments
Open

ReferenceError: self is not defined #2

Mingo-233 opened this issue Oct 24, 2024 · 0 comments

Comments

@Mingo-233
Copy link

Mingo-233 commented Oct 24, 2024

First of all, this is a great color library. I really need a JS library to load icc files to convert colors. But I encountered some problems when using it. It works fine in the browser environment, but in the node environment, when I execute the code, the following error occurs: 'ReferenceError: self is not defined'

version: "jscolorengine": "^1.0.4"

colorengine

When I checked the source code, I found that the problem might be in the webpack configuration. "self" is a variable in the browser environment, but it does not exist in the node environment. For the node environment, may need to set libraryTarget: "commonjs"

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

1 participant