You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
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"
The text was updated successfully, but these errors were encountered:
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"
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"
The text was updated successfully, but these errors were encountered: