TypeError: Cannot read properties of undefined (reading 'location') #25093
-
SummaryHi, I have a NextJS project + storybook, but the problem with it is that when I start my project it complains about location being undefined and I do not get why, And here I found something similar but not exactly my issue. Clone the reproducible repo and just do an Your help and comments are much appreciated Additional informationNode version: 20.3.1 Create a reproduction |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Thank you for sharing a reproduction! I see that you're using the https://github.com/storybookjs/storybook/tree/next/code/frameworks/nextjs#nextjs-navigation |
Beta Was this translation helpful? Give feedback.
I cloned and repo and ran it locally. Given your error, I had assumed the error was in the browser, so I was surprised to see that it was actually in the console.
The first few lines are:
Which makes me think that the issue is actually in
@storybook/jest
. The good news is, that package…