Storybook: Why there is a Unknown tag around story source

Created on 20 May 2019  路  8Comments  路  Source: storybookjs/storybook

Describe the bug
There is a Unknow tag around story source

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
There is not a Unknow tag aroud story source

Screenshots
image

Code snippets

// .storybook/addons.js
import "storybook-addon-jsx/register";
import "@storybook/addon-knobs/register";

// .storybook/config.js
import { addDecorator, configure } from "@storybook/react";

import { Fragment } from "react";
import { jsxDecorator } from "storybook-addon-jsx";
import { withInfo } from "@storybook/addon-info";
import { withKnobs } from "@storybook/addon-knobs";

addDecorator(jsxDecorator);
addDecorator(withKnobs);
addDecorator(withInfo({ inline: true, propTablesExclude: [Fragment] }));

function loadStories() {
  require("../stories/index.js");
}

configure(loadStories, module);

import React, { Fragment } from "react";

import { Button } from "@cp/ec-ui";
import { storiesOf } from "@storybook/react";

// import { boolean, text } from "@storybook/addon-knobs";

storiesOf("Button", module)
  .add("type prop", () => (
    <div>
      <Button type="primary">Primary Button</Button>
      <Button type="danger">Danger Button</Button>
      <Button>Normal Button</Button>
    </div>
  ))
  .add("with emoji", () => (
    <Button>
      <span role="img" aria-label="so cool">
        馃榾 馃槑 馃憤 馃挴
      </span>
    </Button>
  ));

System:

  • OS: Windows10
  • Device: PC
  • Browser: chrome, safari
  • Framework: react
  • Addons: storybook-addon-jsx銆丂storybook/addon-info銆丂storybook/addon-knobs
  • Version: 5.0.11

Additional context
Add any other context about the problem here.

info inactive question / support

Most helpful comment

FYI addon-info聽is being superceded by聽addon-docs, which fixes a bunch of bugs and is easier to maintain. It鈥檚 reached release candidate (RC) status and will be properly released soon. Please give it a try!聽https://medium.com/storybookjs/storybook-docspage-e185bc3622bf

All 8 comments

It would be good to perhaps just ignore React fragments

Screen Shot 2019-05-31 at 4 26 04 pm

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

It seems to be an issue with withInfo and jsxDecorator. I had the same issue and it was fixed when I switched the order of the two (withInfo loading first). But that broke jsxDecorator - now it shows <Story><MyComponent /></Story>.

Would appreciate some help on this.

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

FYI addon-info聽is being superceded by聽addon-docs, which fixes a bunch of bugs and is easier to maintain. It鈥檚 reached release candidate (RC) status and will be properly released soon. Please give it a try!聽https://medium.com/storybookjs/storybook-docspage-e185bc3622bf

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xogeny picture xogeny  路  3Comments

shilman picture shilman  路  3Comments

zvictor picture zvictor  路  3Comments

ZigGreen picture ZigGreen  路  3Comments

sakulstra picture sakulstra  路  3Comments