• I have two issues:

    1. App not rendered: I deployed my vite app’s dist/ to /srv/www/wordpress/wp-content/reactpress/apps/app-name/dist, but nothing rendered.
      Here is my package.json, I only use react and react-dom.
    2. Image and json 404 not found: I also deployed another app that using react-router, router is working and components are rendered correctly, the only problem is that the json and image in dist/assets is not show up.

    Thank for your help in advance!

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

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

    (@rockiger)

    Did you develop your app, according to the documentation? That means, did you develop in the provided subfolder of your WordPress dev environment?

    If yes, there appears to be a rights issue on your provided URL, where it can’t load a script-tag. I don’t know if this is the script-tag that loads ReactPress.

    Thread Starter rbmpsh

    (@rbmpsh)

    I developed my app in pc, then upload the dist folder to server via ssh.

    • This reply was modified 1 month, 1 week ago by rbmpsh.
    Thread Starter rbmpsh

    (@rbmpsh)

    In this page which reactpress is working, I found my react app was loaded in <script id="rp-react-app-asset-0-0"> . But in the page which app not rendered, I can’t find any script-tag’s id start with rp-react.

    Is this the rights issue? How can I fix that?

    Edit:
    I clone the app and build it in server, now it works. But the type is “Vite Development”.

    • This reply was modified 1 month, 1 week ago by rbmpsh.
    • This reply was modified 1 month, 1 week ago by rbmpsh.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.