-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Pin styled-components version until ReferenceError: window is not defined
fixed
#1563
Comments
ReferenceError: window is not defined
fixed
@pierot I'm not sure why you see the error because redoc-cli uses a npm-shrinkwrap file which should prevent this issue. How do you run the redoc-cli? I just tried Maybe I have some cache though. |
We've got the same error since today in our Pipelines...
|
How is redoc-cli installed in the pipeline? using npm or maybe yarn? Also what version do you run in pipelines? Sorry for maybe dumb questions, I'm just trying to understand how this happens provided we have npm-shrinkwrap in place. Thanks. |
@RomanHotsiy Not a dumb question. Here you go:
|
As I expected it is most likely caused by yarn not respecting npm-shrinkwrap.json. Could you switch to npm and let me know if that works:
|
@RomanHotsiy Indeed it does fix it! But you forgot one line.
Thanks a lot! |
This has been fixed in upstream: styled-components/styled-components#3446 (comment) |
See: styled-components/styled-components#3444
If it's possible to pin the version number of styled-components in the mean time.
The text was updated successfully, but these errors were encountered: