question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build-storybook error

See original GitHub issue

I’m running into an issue with this addon when I run build-storybook, it’s giving me

Building storybook ...
Failed to build the storybook
static/preview.89bc50f3418f0babaff2.bundle.js from UglifyJs
Invalid assignment [static/preview.89bc50f3418f0babaff2.bundle.js:44049,34]

Merely having this line import JSXAddon from 'storybook-addon-jsx' in stories/index.js causes this to happen… Any suggestions?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ndelangencommented, Sep 5, 2017

passing to babel-minify should fix the issue. The package react-element-to-jsx-string use a dependency that do not transpile to es5 anymore.

This is on the way: https://github.com/storybooks/storybook/pull/1733

1reaction
wcastandcommented, Sep 1, 2017

Yeah, that way people who came across the same problem will know why 😃 I hope it get fixed soon. Thank, for reporting the bug here 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when running build-storybook with Node 17 · Issue #16555
storybook -o build/storybook` with Node 17. I received this error: 10% building 1/11 modules 10 active /home/belliard/dev/my-app/node_modules ...
Read more >
Storybook - Can't resolve 'generated-stories-entry.cjs' / Field ...
js application and running build-storybook I am receiving the following error. Note: I am using npm version 8.19.1 . The project is written...
Read more >
Okta-react-storybook-example: Storybook build error
I am unable to build the @oktadev/okta-react-storybook-example project. Whenever I try to interact with the Storybook side of the project I ...
Read more >
Configure Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Errors component • chromaui/chromatic-cli
The CLI tried to run your build:storybook script, but the command failed. This indicates a problem with your Storybook. Here's what to do:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found