Hi,
Our Netlify site guidedogs-qa.netlify.app is an app using:
node@16.18.1
Nextjs@13.5.6
styled-components@6.1.1
typescript@5.2.2
netlify-cli@17.10.1
netlify-lambda@2.0.16
It is building and deploying without any issue but the components that are styled with styled-components are not rendering at all. The rest of the css is rendering fine.
The same issue happens locally, but when I run it on nextjs (localhost:3000), it’s working correctly but not when I run Netlify (localhost:8888). We have some Netlify functions running on localhost:7000 that work fine as well.
I’ve tried using previous versions of styled-components@5.2.1 and netlify-cli@3.4.0 but I got the same response.
The domain is gd-qa.guidedogs.org.uk
Is there something else I need to set up to make it work correctly?
Looking at the dev console, I see tons of errors fetching files from some site netlify does not host. I’ve included a snapshot of those but I don’t think this is related to netlify configuration or site service at all - however I do expect it is at least some of the problem.
As a first pass, we recommend downgrading to at most node 13.4.x since there are known issues with 13.5 and beyond at the moment. Could you give that a try and let us know if things improve
I found the issue. The failing URL was included in the redirects block in the netlify.toml file, so it was rendered by back end not being able to find the styles for it.
Thanks for your help!