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.

babelRelayPlugin dose work with storybook

See original GitHub issue

I try to use storybook in f8app,which is an app provided by Facebook for tutorial purpose. I get this:

ERROR in ./.storybook/config.js Module build failed: ReferenceError: Unknown plugin "./server/schema/babelRelayPlugin" specified in "foreign" at 0, attempted to resolve relative to "/Users/Kathy/f8app/.storybook" at /Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:177:17 at Array.map (native) at Function.normalisePlugins (/Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:153:20) at OptionManager.mergeOptions (/Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:245:36) at /Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:254:17 at /Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:316:22 at Array.map (native) at OptionManager.resolvePresets (/Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:305:20) at OptionManager.mergeOptions (/Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:253:29) at OptionManager.init (/Users/Kathy/f8app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:360:12) @ multi preview

Please give me a hint.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
eugene1gcommented, Sep 8, 2016

A solution that worked for me - I created a .storybook/.babelrc with {"extends": "../.babelrc"} and it seems to fully respect relative paths from the parent/project .babelrc file.

1reaction
arunodacommented, Jul 24, 2016

@rohit-ravikoti You can create a custom .babelrc file for storybook. See: https://github.com/kadirahq/react-storybook/blob/master/docs/configure_storybook.md#custom-babel-config

I hope that’ll work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

storybook.js, page stuck loading, no errors - Stack Overflow
I'm building a little react library and trying to get storybooks to work. When I'm starting storybook with start-storybook -p 6006 the page ......
Read more >
Getting Started with React, GraphQL and Relay (Part 1 of 2)
So what does Relay do? Relay is a framework that connects React Components to GraphQL services through a container which implements Actions, ...
Read more >
simple-relay-starter - npm Package Health Analysis - Snyk
This template string will be parsed by babel-relay-plugin when we browserify. user: () => Relay.QL` fragment on User { name, widgets(first: 10) {...
Read more >
Barebones Starting Point For A Relay Application with Golang ...
Barebones Starting Point For A Relay Application with Golang GraphQL. Golang-Relay Starter Kit. This kit includes: a NodeJS app server: to serve the ......
Read more >
apollo graphql resolve only requested fields - You.com
At a high level, what the default resolver does is simple: it looks at the value ... the response as-is and expect the...
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