Closed p4dd9 closed 1 year ago
https://github.com/styled-components/styled-components/issues/1589 porting to styled components 6
upgrading to styled-components 6 leads to
- info Collecting page data .TypeError: u.default.createContext is not a function
`Good to know:
To use an async Server Component with TypeScript, ensure you are using TypeScript 5.1.3 or higher and @types/react 18.2.8 or higher.`
it is related to either page.tsx
or its import for singleviews
issue seems to be related to smth else, in PR no dynamic paths are built
react-dom.development.js:6779 Uncaught Error: Hydration failed because the initial UI does not match what was rendered on the server. at throwOnHydrationMismatch
`Warning: An error occurred during hydration. The server HTML was replaced with client content in <#document>.`
`arning: Prop `className` did not match. Server: "sc-hKgJyM kmzcAu" Client: "sc-gKsdJj GYJQf"`
https://github.com/charityroyale/webapplication/pull/103 learnings:
so far, only the upcomingstream grid is a bit "off the grid" (hah) - planing to finish soon
fix
Collecting page data .TypeError: r.createContext is not a function
during build processError: Failed to collect page data for /_not-found
Steps to reproduce
npm run build-netlify
It seems to be related to ReactContext used in a servercomponent
To investigate Providers using createContext:
Failed to collect page data for XXX
XXX displays different pages by now and then (race condition? async?)streamer
singleview pages withwishes
is deleted? -> YES! --> Does it build ifnot_found
is re-added -> YES! --> Does it build if[streamer]/[wish]/page.tsx
without content.tsx is re-added -> NO!