-
Notifications
You must be signed in to change notification settings - Fork 72
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
TypeError: The 'compilation' argument must be an instance of Compilation #72
Comments
It's hard to diagnose errors related to the worker script ( An error with the same message has reported on I'll release |
Had the same issue and the problem were mulitple Webpack Versions (4.x and 5x). You should check that via |
Hi, I just tried installing the addon and following the setup for the new storybook (6+) syntax. Everything seems to build fine but I do not see a design tab in my stories. Tried added params globally and to specific stories and did the same with the decorator. I have no log either of any sort of error which is not helpful. @pocka how could I setup the repo and try to debug on my side? |
Strange, for me what fixed it was reverting to the old syntax in |
I also have this problem,but it is happen when I use VueLoaderPlugin,but it is necessary for me to use VueLoaderPlugin in my project; |
We used `react-pdf`, which internally uses `pdf-js`. The problem is, the worker-loader triggered by `react-pdf` causes errors such as #72 . Of course, that error is by user misconfiguration but it's hard to manage such kind of errors just for the minor feature. In addition to that, I don't want to ship with a lot of dependencies just for preview-ing. Storybook bundle tends to be big and we addon authors should try to minimize bundle size as much as possible. If you want the PDF preview support, please use storybook-addon-designs@v5. BREAKING CHANGE: parameters with `pdf` type no longer works
If you face this error, please make sure you don't include multiple webpack versions in your project. FYI, I published |
I am getting the following error when I try to configure figma with storybook- react.
ERROR in ./node_modules/storybook-addon-designs/node_modules/react-pdf/dist/pdf.worker.entry.js (./node_modules/storybook-addon-designs/node_modules/worker-loader/dist/cjs.js!./node_modules/storybook-addon-designs/node_modules/react-pdf/dist/pdf.worker.entry.js)
Module build failed (from ./node_modules/storybook-addon-designs/node_modules/worker-loader/dist/cjs.js):
TypeError: The 'compilation' argument must be an instance of Compilation
Can someone please help?
The text was updated successfully, but these errors were encountered: