Running into "late setup error" with Next.js #50
-
Originally posted in #49
The app in question is a testbed project which makes use of the reddit API. Repo: https://github.com/itsMapleLeaf/reddit-client/tree/twind Key files: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Thanks for the report. We should make it more clear that What you are trying is already possible using the yet undocumented
I hope that helps... PS: Sorry for the inconvenience we are still working on the documentation. |
Beta Was this translation helpful? Give feedback.
-
I can not really try the app because i'm missing a I think the problem is that next/webpack are re-evaluating |
Beta Was this translation helpful? Give feedback.
-
Yeah, so it seems more like an issue with the SSR setup, or something else in the project that's causing unwarranted side effects. Also, for reference, I also tried the Here's what I got in the console when doing that:
|
Beta Was this translation helpful? Give feedback.
-
Found the problem 🤦♂️ - if (typeof window !== undefined) {
+ if (typeof window !== "undefined") { |
Beta Was this translation helpful? Give feedback.
Found the problem 🤦♂️