Skip to content

[Bug]: TypeError: Cannot read properties of undefined (reading 'startsWith') #25503

Answered by Seefer
Star-tears asked this question in Help
Discussion options

You must be logged in to vote

I managed to solve my problem with this same error which I posted about on Storybook Discord at:

https://discord.com/channels/486522875931656193/1130448886016770098

I had Prettier version 3.0.0 in my packages.json and have discovered that if I revert that to version 2.8.8 and then run pnpm dlx sb init, to relaunch the initialization step, it completes without error and I can then run pnpm storybook to successfully launch the Storybook server.

I had other issues with prettier plugins recently and I'm informed Prettier version 3.0.0 introduces breaking changes for plugins. I was using prettier-plugin-tailwindcss before the Tailwind Labs peeps updated it to 0.4.0, which is where I heard of t…

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vanessayuenn
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
5 participants
Converted from issue

This discussion was converted from issue #23465 on January 08, 2024 10:14.