Closed kon-rad closed 4 years ago
same in 5.1.0-rc.0
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!
I'm experiencing this same issue
"@storybook/addon-info": "^5.1.10",
"@storybook/react": "5.2.0-beta.7",
"react": "^16.8.6",
"react-dom": "^16.8.6",
FYI addon-info
is being superceded by addon-docs
, which fixes a bunch of bugs and is easier to maintain. It’s 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!
Having this same issue here, except I can reproduce it with a single story in my storybook, I will provide the code for it below but this is the only story in my book that will cause the error on page load (refresh).
import React, { useState } from "react";
import { useAxiosMock } from "../../helpers";
import { storiesOf } from "@storybook/react";
import { select, text, button, number } from "@storybook/addon-knobs";
import { ImageLoader, FlexBox, PropTable } from "../";
import readme from "./ImageLoader.md";
const stories = storiesOf("Components", module);
const src = "http://localhost:9009/myImage.png";
const Story = () => {
const [key, setKey] = useState(0);
const options = {
200: 200,
404: 404
};
let serverResponse = select("Server response", options, 200);
useAxiosMock(
axiosMock => {
axiosMock.onGet(src).reply(config => [serverResponse, "OK"]);
},
[serverResponse]
);
const bgSizeOptions = {
cover: "cover",
contain: "contain"
};
const aspectRatioOptions = {
"16:9": "16:9",
"4:3": "4:3",
"1:1": "1:1"
};
const style = {
width: "200px"
};
return (
<FlexBox alignItems="flex-start" col>
<FlexBox id="test" style={style}>
<ImageLoader
key={key}
src={src}
fallback={text("Fallback message", "Fallback message")}
initialRetryDelay={1000}
backgroundColor="light_gray4"
border="imageBorder"
maxRetries={number("Maximum retries", 2)}
aspectRatio={select("Aspect ratio", aspectRatioOptions, "16:9")}
backgroundSize={select("Background size", bgSizeOptions, "contain")}
/>
</FlexBox>
<br />
{button("Rerender", () => setKey(k => k + 1))}
</FlexBox>
);
};
stories.add("ImageLoader", () => <Story />, {
readme: {
// Show readme at the addons panel
sidebar: readme
},
info: {
propTables: [ImageLoader],
// TableComponent: PropTable
}
});
I'll start by saying this is not my component and I am not here to review it, I merely want to fix this specific issue (TL:DR; I don't need styling suggestions).
I have created a custom PropTable
component which is a copy from addon-info but I have substituted the PropVal
& PrettyPropType
components for a div. You will see in my demo code I have used it (I left it there commented out) and this resolves this issue, I can browse without error at any point.
I probably wouldn't be here but I am unable to set and use the custom table at the global level (I.e. if I add info: { TableComponent: PropTable }
to my addParameters
call in .storybook/config.js
it is not used anywhere, when adding it to stories individually it works, how can I configure this globally?
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!
same in 5.2.5
PRs welcome
@shilman Here https://github.com/storybookjs/storybook/pull/8745
Yee-haw!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.42 containing PR #8745 that references this issue. Upgrade today to try it out!
You can find this prerelease on the @next
NPM tag.
Closing this issue. Please re-open if you think there's still more to do.
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.6 containing PR #8745 that references this issue. Upgrade today to try it out!
Describe the bug
Updated from storybook 4 to 5. This warning appears in the console when first loading the page. On visiting other 'stories' warning doesn't show up.
To Reproduce Steps to reproduce the behavior:
Expected behavior No warnings should appear in console.
Screenshots N/A
Code snippets N/A
System:
Additional context package.json: