-
Notifications
You must be signed in to change notification settings - Fork 109
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
this.WorkerClass is not a constructor #85
Comments
I'm also getting the exact same error when trying to implement the example in React, please help. |
Sorry for the confusion. We are still finalizing the docs. You will need webpack and worker-loader for this to work. |
I'll do my best to take a look at how we can ship down a built version of this that doesn't require webpack. Timeline is hesitant, as I have some family health problems, so please be patient :) |
Same problem, using vue.js though |
Same problem, using Angular 7 :) |
Same problem with Vue.js |
@AggressivelyMeows, @MadReal make sure you have worker-loader installed and change webpack configuration. In case of using Vue, you need to edit vue.config.js.
|
Hi. Can't find a may to make it work. I have the loader in my webpack config but still have the error... |
@akfish any ideas ? |
Please avoid tagging maintainers directly - FWIW I'm one the current maintainer of the project. Is there any way someone could provide a minimal reproduction that I can take a look into? I'm not able to reproduce |
Currently, npmjs has an alpha version distributed as a latest version. |
@ivgtr Your solution worked perfectly to resolve this issue! npm remove node-vibrant && npm install [email protected] |
@ivgtr solved! thanks! |
please not make like https://github.com/storybookjs/storybook/issues , as you see there is more issue for webpack crap config than "true" issue of the main functionnality. Make usage easiest possible please. |
thank you!!!!! |
Same problem, using Vue.js 3 with Vite Work fine with |
Thanks @ivgtr |
The error is resolved however when I build sveltekit it appears Uncaught TypeError: Cannot read property 'filters' of undefined`` |
Unless that error is directly connected to this issue (which I don't believe it is), you'll need to create a separate issue for that. |
Still having the same problem with Vue3, Nuxt3, [email protected] and [email protected]... |
This comment was marked as abuse.
This comment was marked as abuse.
@Lucienest you're welcome to open a PR to fix this. |
Downgrading + worker-loader + webpack didn't work for me. |
How would one use this package/get around this issue if webpack is not possible? (ie. Deno runtime) |
Hi, I am getting this error with the example from the docs:
This is my code:
console.log(src); Vibrant.from(src).getPalette() .then((palette) => console.log(palette))
I am using
React
.The text was updated successfully, but these errors were encountered: