Comments (7)
If anyone Googles into here, I was getting a similar, but slightly different, error:
ERROR in ./storybook/addons.js
Module build failed: ReferenceError: [BABEL] /Users/gerard/_work/crossroads-anywhere/react-native/storybook/addons.js: Unknown option: direct.presets
at Logger.error (/Users/gerard/_work/crossroads-anywhere/react-native/node_modules/babel-core/lib/transformation/file/logger.js:58:11)
npm ls babel-core
gave me:
├─┬ @storybook/cli@3.2.4
│ └─┬ jscodeshift@0.3.32
│ └── babel-core@5.8.38
It sounded like Babel 5 was the problem, so I had to explicitly install Babel 6: npm i --save-dev [email protected]
. Not sure if that's a good idea or not, but it fixes the error and everything in my project still appears to be working.
from storybook.
I upgraded to Babel 6 and it works well. The bug is in Babel, and I couldn't figure out what was going wrong.
It may be worth considering making babel v6 a peer dependency and call it good.
from storybook.
Node 4.2.0 / NPM 3.8.1
from storybook.
Yes I think that's the issue. It's try to load babel5 inside this where we don't support.
I didn't find this. I assume, you need to upgrade to babel6 for now.
I'll see what I can do about this.
from storybook.
Cool. I think that's something we can do.
from storybook.
I think we can close this now. Since everybody is using babel6.
from storybook.
Thanks for posting your solution @hellogerard !
from storybook.
Related Issues (20)
- [Bug]: Incorrect link to deprecated addons repo
- [Bug]: Unable to use tailwind classes in storybook
- [Documentation]: "Troubleshooting" section missing in Controls docs HOT 1
- [Bug]: show code part shows React.Memo instead of the component name
- Handle story change during loading/playing stories
- Module mock `next/headers` by default in the `@storybook/nextjs` framework
- [Bug]: migrate with config-path yields unknown option error HOT 3
- [Bug]: Same repository failed with error if run locally but fine if run on stackblitz
- [Documentation]: Add `metaTags` to indexer doc HOT 2
- [Bug]: webpack and its plugins should be peer dependencies of @storybook/builder-webpack5 HOT 4
- [Bug]: Storybook 8 + Vue 3 + Vite Installation failed (following the guide) HOT 1
- [Bug]: Storybook MDX does not load if opened using "Open link in new tab"
- [Bug]: [unocss] entry module not found, have you add import 'uno.css' in your main entry?
- [Bug]: Controls can't display enum props HOT 3
- Static Assets on github pages serving from root rather than project namespace despite staticDirs rewrite [Bug]: HOT 2
- [Bug]: Angular 17.3.1, unable to bind value to [ngModel] for custom ControlValueAccessor component
- [Bug]: Mobile ui search breaks into an infinite loop
- [Bug]: startup throws TypeError [ERR_INVALID_ARG_TYPE] when node_modules/.cache is present
- [Bug]: Dispatcher is null error after updating to v8.0.6
- [Bug]: Error Encountered When Generating HTML Accessibility Reports in Storybook: `page.evaluate: ReferenceError: __test is not defined error`
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 storybook.