Coder Social home page Coder Social logo

Comments (7)

hellogerard avatar hellogerard commented on April 25, 2024 4

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.

quicksnap avatar quicksnap commented on April 25, 2024 1

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.

quicksnap avatar quicksnap commented on April 25, 2024

Node 4.2.0 / NPM 3.8.1

from storybook.

arunoda avatar arunoda commented on April 25, 2024

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.

arunoda avatar arunoda commented on April 25, 2024

Cool. I think that's something we can do.

from storybook.

arunoda avatar arunoda commented on April 25, 2024

I think we can close this now. Since everybody is using babel6.

from storybook.

ndelangen avatar ndelangen commented on April 25, 2024

Thanks for posting your solution @hellogerard !

from storybook.

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.