• intelliverse

    (@intelliverse)


    Hello. I hope you are doing well. And thank you Reactpress!
    I’m using Reactpress to integrate a React app into an existing WordPress project.
    I installed Reactpress and uploaded the build folder inside the Reactpress directory.
    But when I load the React page, I get this error.

    react-dom.production.min.js:319 Uncaught Error: Minified React error #299; visit https://reactjs.org/docs/error-decoder.html?invariant=299 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at t.createRoot (react-dom.production.min.js:319:204)
    at index.js:6:1
    at index.js:7:9
    at index.js:7:9

    What am I missing in Reactpress?
    thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author rockiger

    (@rockiger)

    Did you develop your React app with ReactPress? Otherwise you will need to do some adjustments in your vite.config.js to have make your app work with ReactPress.

    I would be best, if you would create an app with the quickstart tutorial and look how the configuration changes and appy that to your app.

    Thread Starter intelliverse

    (@intelliverse)

    Hmm, the React app was developed separately. I dont use vite for my React app. but I could run my react app with fresh WP project on my local dev environment.

    Thread Starter intelliverse

    (@intelliverse)

    This is what I am facing now.
    https://ibb.co/CwzKxPd
    Could it be because there is a conflict between plugins?

    Plugin Author rockiger

    (@rockiger)

    I don’t think it is conflict between plugins.

    How is your React app set up? Did you use create-react-app or a custom webpack configuration?

    The thing is, ReactPress expects a Vite or cra environment and behaves accordingly.

    Otherwise, chances are that ReactPress won’t load your files correctly. If you can tell me more about your React setup, I can try to guide you through how we can trick ReactPress into thinking your React app is build with one of the mentioned environments.

    Important to know is where the release build is located and how the app is loaded into the HTML page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught Error: Minified React error #299;’ is closed to new replies.