-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'length' of undefined at serializeStyles #604
Comments
Same issue, any ideas? |
youre using styled-components -and- emotion -and- storybook with -docz-? too many degrees of freedom to debug here. try starting from a clean project and adding things slowly, or it is very hard to help |
EDIT: a team member manually added Webpack as a dependency and it appears to have fixed this error (following instructions in #596) So try We're not using Emotion, Docz is. I had to install all those Emotion dependencies just to get Docz to build. We had an existing project using Styled Components and Storybook that we added Docz to. It was working fine until we updated to the latest release, so I was hoping there would be a quick answer for what had broken. I appreciate this is difficult to debug, apologies. I hadn't seen anyone else mention this specific error in an issue so I figured it was worth highlighting for people googling it. It seems at least a few more people are having the same problem. I'll try to reproduce in a smaller repo when I get time. I did make an attempt but I hit a totally different bug with a fresh Docz install and gave up 🤷♂️ |
sorry for the frustration @oliverjam. file a new issue for that fresh install and i'll work with you on that. lets shave the yak |
No need to apologise! I fully understand there are growing pains in a project this complex, especially when you jump all in this early. See my edit above: I think the instructions to manually add a Webpack dependency from #596 fixed this issue (it also fixed my problem with a totally fresh Docz install, so possibly they're related) |
I have the same problem 😞 |
I have the same problem and I already had webpack and upgrading to to v4.2.8.4 didn't solve the issue |
I had the same issue. It turned out that I had a problem with package version of I think it would be a good idea to add |
Problem We encountered the same issue having
Solution cd node_modules/docz-core && npm i -D @emotion/[email protected] && cd .. && cd .. Thanks to the comment (604#issuecomment-465991668) of @pdomaleczny our problem is solved for now and docz is finally up and running again. But a more permanent solution on your end would be great to provide a better compatibility to other tools. |
got same problem how to fix this? |
LoL , My xampp server (mysql) was off |
Bug Report
Describe the bug
docz dev
results in a "successful" build, but in browser the page is blank and the below error is logged to the console.To Reproduce
A clean Docz install doesn't appear to have this problem, so there must be some interaction with our dependencies causing this (Styled Components? Storybook?). I've included all our dependencies below
Environment
10.14.2
10.14.1
/6.4.1
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: