-
Notifications
You must be signed in to change notification settings - Fork 69
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
Error with webpack: Module not found: Error: Can't resolve 'onecolor' #46
Comments
Update, I get the same error using the latest version of the files too, ie: https://github.com/One-com/one-color/blob/master/one-color.js https://github.com/bebraw/colorjoe/blob/master/dist/colorjoe.js
So I tried using the following https://github.com/bebraw/colorjoe/blob/master/src/colorjoe.js Import statements are now:
And now I get error on frontend in chrome dev tools:
Relevant code there is:
https://github.com/bebraw/colorjoe/blob/master/src/colorjoe.js#L73 |
I'm not sure if this is the issue as I know very little about I saw in the above code snippet, The error went away, but I'm still not sure if colorjoe will work as I am still troubleshooting other issues. |
Now I get errors like:
triggered by the
which is like this in the source:
|
Hi, I repackaged the whole thing. You should be able to consume it from npm directly now. It comes with the extras too although the API can likely be improved further. |
I have a folder of 3rd party JS files (jQuery plugins and Javascript libraries).
I am trying to bundle them into a single file with webpack.
Below is relevant part of
webpack.config.json
:When I run webpack, I get these errors relating to
colorjoe.js
:Version information in that file is:
(Here is link to the 2.0.0 release - I am using an older version because newer versions don't seem to "work" with the way I have implemented it).
Do you know what changes I would need to make in this file in order to get rid of that error?
Thank You.
The text was updated successfully, but these errors were encountered: