react-styleguidist icon indicating copy to clipboard operation
react-styleguidist copied to clipboard

Error: Invalid hook call. Hooks can only be called inside of the body of a function component.

Open AshleyFang opened this issue 2 years ago • 0 comments

I have also come across this problem. Does anyone have any recommended solutions? I am willing to give them a try. issues:

This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at Ribbon (webpack:///./node_modules/react-styleguidist/lib/client/rsg-components/Ribbon/Ribbon.js?:11:114)
    at div
    at StyleGuideRenderer (webpack:///./node_modules/vue-styleguidist/lib/client/rsg-components/VsgStyleGuide/StyleGuideRenderer.js?:79:23)
    at _class (webpack:///./node_modules/react-styleguidist/lib/client/rsg-components/Styled/Styled.js?:62:28)
    at StyleGuide (webpack:///./node_modules/react-styleguidist/lib/client/rsg-components/StyleGuide/StyleGuide.js?:91:29)
This may be due to an error in a component you are overriding, or a bug in React Styleguidist.

If you believe this is a bug, [please submit an issue](https://github.com/styleguidist/react-styleguidist/issues).

versions: vue 2.6.14 vue-loader 15.9.2 vue-styleguidist 4.72.4 react 16.4.0 webpack-bundle-analyzer 4.9.0

AshleyFang avatar Aug 06 '23 12:08 AshleyFang