Comments (8)
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 :)
from addon-jsx.
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:
storybookjs/storybook#1733
from addon-jsx.
I should add that 1) this is an awesome addon and 2) it works with start-storybook
in my setup, just not with build-storybook
:)
from addon-jsx.
How to replicate:
- clone this: https://github.com/plotly/react-pivottable/tree/jsx-addon-bug
npm install
npm run build-storybook
from addon-jsx.
The response you got from the issue in storybook kind of answer to you i think no ? or you want something in particular ?
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.
If you think there is a way to avoid this problem, i don't mind looking into it:).
from addon-jsx.
Well, until the upstream patch is merged, this is still a big problem: we can't use this addon with build-storybook
so let's keep this issue open until it's fixed upstream?
from addon-jsx.
passing to babel-minify should fix the issue
But only if you're not targeting IE11
from addon-jsx.
I fixed the issue after lots of complication.
some plugins will add their own version of storybook as a dependency. Delete that if it pops up. Also this will go for most plugins I'm guessing. But in this plugin, I went into the plugin files and replaced a couple calls from @storybook/addons to @kadira/storybook-addons the changes were in files lib/index and lib/register. anywhere you see this pattern of calls to external files you will have to follow the errors and make the changes.
Happy coding!!!
from addon-jsx.
Related Issues (20)
- Docs are unclear HOT 1
- JSX formatting for component props HOT 2
- Actions show up as extra noise in JSX panel HOT 3
- Default Props are included in output HOT 1
- Allow JSX customization (boolean props, etc) HOT 2
- Is it possible to change the theme for a 'black' version ?
- Is it possible to change the theme for a 'black' version ?
- [Feature] Target content when used as a global decorator HOT 2
- [Bug] Copy Button Moves on Scroll HOT 2
- Is there an option to hide function implementation from props?
- [Bug] React 17 peer dependency HOT 4
- Skip not applied to Storybook Docs story source
- [Bug] Not enough children to skip elements for stories without children HOT 1
- [Bug] Not all constituents of type 'string | ClientApiReturnFn<StoryFnReactReturnType>' are callable. Type 'string' has no call signatures.
- [Bug] JSX tab remains visible when addon is disabled HOT 1
- [Bug] Addon not working correctly with Angular?
- [Bug] OnBeforeRender option has no effect whatsoever on Angular Storybook
- [Security] Critical Warnings on react-dev-utils that depends on immer
- [Bug] An issue when using addon-jsx globally
- [Improve] Upgrade to storybook 7 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addon-jsx.