You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it can be fixed if next code will be added to .storybook/preview.ts:
export const render = (args, context) => {
if (!context.component) {
throw new Error("Default preview() can be used only when story default return has a 'component' property.")
}
return new context.component(args);
};
Maybe it worth to add default project level render setting?
It can expect to get a component that implements Pixi.Container.
The text was updated successfully, but these errors were encountered:
Example in this repo uses next story format:
Here each story SHOULD be a function that creates a Pixi Container/DisplayElement.
But Storybook also supports two more formats:
render
method in default export of the story (it is working).component
property in default export of the story (it is NOT working).But it can be fixed if next code will be added to
.storybook/preview.ts
:Maybe it worth to add default project level
render
setting?It can expect to get a component that implements Pixi.Container.
The text was updated successfully, but these errors were encountered: