Localhost:3000 – blank page
-
First: Thanks a lot for that plugin and all that documentation work. I got a first R3F-App online in an active WordPress and it was a real pleasure to see that :-).
I have a question concerning the local development server:
I started the project using local and Visual Studio Code and followed the installation instructions. Everything works fine, meaning the local WordPress loads the App. But at localhost:3000 only a blank page is showing up. Following error message is shown:
Uncaught Error: createRoot(...): Target container is not a DOM element. ???React 3 ???? createRoot ???? createRoot$1 ???? createRoot ????js index.js:7 ????factory react refresh:6 ????Webpack 3 ??? ?__webpack_require__ ???? <anonymous> ????< anonymous> react-dom.development.js:29345 ????React 3 ????js index.js:7 ????factory react refresh:6 ????Webpack 3
My intention is to get instant feedback on localhost:3000 (HMR?) while developing my app and do a build only from time to time to see how it is implemented in the local wordpress (e.g. https://rp-tutorial.local/adress-book/).
Question is: Is the plugin generally working this way (so it would be worth the effort to get localhost:3000 running)? Or wouldn’t that be an option so I just ignore the error and have to build every time I want to see changes in the app?
Thanks very much in avance!
- The topic ‘Localhost:3000 – blank page’ is closed to new replies.