Saas-Starter-Kit / SAAS-Starter-Kit-Pro

A boilerplate for building Software-as-Service (SAAS) apps with Reactjs, and Nodejs
https://www.saasstarterkit.com/
MIT License
598 stars 140 forks source link

TypeError: Cannot read property 'useState' of null #21

Closed carlors closed 1 year ago

carlors commented 1 year ago

I had follow the saas doc step and run up the client and server, but when I access the web page by the url http://localhost:3000, I got error as below: Server Error TypeError: Cannot read property 'useState' of null 12 | try { 13 | ctx.renderPage = () => 14 | originalRenderPage({ | ^ 15 | enhanceApp: (App) => (props) => sheet.collectStyles(<App {...props} />) 16 | }); 17 | I can't figure it out and hoping for help, thanks.

carlors commented 1 year ago

I found the solution, just upgrade the react-dom next and react component to the latest version can fix it.