Can't use outside components in storybook

179 Views Asked by At

I have a nextjs app with storybook setup but I have the components folder is located outside the nextjs project folder enter image description here

When I try to import a component that uses a react hook I get this error in storybook "Cannot read properties of null (reading 'useState')" enter image description here

Here's a screenshot from the console enter image description here

0

There are 0 best solutions below