Skip to content

Can the function "createViewState" run in nodejs ? #1666

Answered by cmdcolin
SeqCrafter asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for making a nice reproducible test case...seriously! it helps a ton

I checked it out

I see reflex uses next.js under the hood. In a hidden directory called .web, there is a full nextjs app. The problem seems to be that it pins to next 15.0.4. After updating to the latest next.js, it works

Specifically, I manually changed the line in .web/package.json

-    "next": "15.0.4",
+    "next": "15.2.3",

Then I ran yarn and ran re-ran the app and it worked

So the issue seems to be with the older version of next.js. not sure if this is the most standard way to fix the issue, maybe reflex needs to update the version of nextjs they use

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@SeqCrafter
Comment options

@cmdcolin
Comment options

@SeqCrafter
Comment options

@cmdcolin
Comment options

Answer selected by SeqCrafter
@SeqCrafter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants