Open TrejGun opened 4 months ago
The error might be related to the rendering logic in Story.tsx
or error handling in ErrorFormatter.tsx
. Check these files for potential issues with property setting.
Story.tsx: Ensure that properties are correctly set and not overwritten. Specifically, review the InlineStory
and IFrameStory
components.
ErrorFormatter.tsx: Verify that the error handling logic does not attempt to set properties on objects that only have getters.
Example areas to check:
Story.tsx
:
const InlineStory: FunctionComponent<InlineStoryProps> = (props) => {
// Ensure no properties are being set incorrectly
};
ErrorFormatter.tsx
:
export const ErrorFormatter = ({ error }: ErrorFormatterProps) => {
// Ensure error properties are accessed correctly
};
/code/lib/blocks/src/components/Story.tsx /code/core/src/components/components/ErrorFormatter/ErrorFormatter.tsx /code/lib/cli/src/automigrate/fixes/cra5.ts /code/lib/cli/src/automigrate/fixes/webpack5.ts /code/lib/cli/src/automigrate/fixes/vue3.ts
no, it is not related to the Story component. You can check the "Inline Toolbar" which is the same but without custom parameters - it works just fine
Describe the bug
Strorybook cant render some components, crashed with error
Reproduction link
https://github.com/Gemunion/mui-rte
Reproduction steps
git clone git@github.com:Gemunion/mui-rte.git cd mui-rte npm i npm run storybook
navigate to http://localhost:6006/ switch to Custom Inline Toolbar
System
Additional context
fork-ts-checker-webpack-plugin seems outdated