Giter VIP home page Giter VIP logo

Comments (7)

dunklesToast avatar dunklesToast commented on May 13, 2024 5

Had the same issue and the problem were mulitple Webpack Versions (4.x and 5x). You should check that via yarn why webpack and should just use one version (probably 4.44.2) or so

from addon-designs.

pocka avatar pocka commented on May 13, 2024 1

If you face this error, please make sure you don't include multiple webpack versions in your project.

FYI, I published [email protected] that drops the PDF preview feature.

from addon-designs.

pocka avatar pocka commented on May 13, 2024

It's hard to diagnose errors related to the worker script (react-pdf/dist/pdf.worker.entry.js)...

An error with the same message has reported on html-webpack-plugin and that might help you. If your lockfile has multiple webpack versions, it might be the root cause.

I'll release [email protected], which drops react-pdf from our dependencies, until the end of this year (Sorry, I'm a bit busy now...)

from addon-designs.

kiily avatar kiily commented on May 13, 2024

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?

from addon-designs.

pocka avatar pocka commented on May 13, 2024

@kiily
This issue is for a webpack config bug (probably) caused by the combination of multiple webpack installations and worker-loader. (I edited the title)

I believe this could help: #43

from addon-designs.

kiily avatar kiily commented on May 13, 2024

Strange, for me what fixed it was reverting to the old syntax in main.js. Passing the following string 'storybook-addon-designs/register' immediately resulted in a working story

from addon-designs.

xxc12138 avatar xxc12138 commented on May 13, 2024

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;
plugins: [
new VueLoaderPlugin(),
]
Does anyone have this problem?I would appreciate your help

from addon-designs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.