simple-rsc icon indicating copy to clipboard operation
simple-rsc copied to clipboard

Cannot get the repo started on local

Open dumbokitty opened this issue 1 year ago • 2 comments

I am on windows node v18.14.1, I cloned the repo but cannot get it started. It gives an error of Error: Objects are not valid as a React child (found: [object Promise])

I think Page.js is not treated as a server component, hence you are not allowed to have the async component. Do you mind giving more details on the environment? Thank you

dumbokitty avatar Jan 11 '24 22:01 dumbokitty

Hi @dumbokitty! Sorry you're hitting this issue. My environment setup is the following:

  • MacOS 13.3.1
  • npm 9.5.1
  • node 18.16.0

Just cloned and installed with npm to verify it isn't a pnpm issue. Interestingly though, npm view react version logs 18.2.0, when I would expect the experimental version in my package.json. It may be time to revisit these version dependencies in case there's a stable release we can use...

For now, I may try installing and running with pnpm to see if this resolves your issue. You can also investigate installing the latest package versions, though I have a feeling we should investigate whether react-server-dom-webpack's peer deps are causing the issue for you:

npm i react@latest react-dom@latest react-server-dom-webpack@latest --legacy-peer-deps

bholmesdev avatar Jan 22 '24 12:01 bholmesdev

Update: I just noticed the npm package lock was out of date. Pushed a fix for that!

bholmesdev avatar Jan 22 '24 12:01 bholmesdev