mediacms icon indicating copy to clipboard operation
mediacms copied to clipboard

Error when viewing video details after rebuilding the static frontend folder to the static web folder

Open harryitc opened this issue 1 year ago • 2 comments

Describe the issue

When I first clone the project and run it using the .yaml file docker-compose-dev.yaml, everything works fine. However, a problem occurs when I use the command npm run build. After build success, I go to the domain http://localhost:80/view?m={mediaID}, and it doesn't work when I click on some media in the list.

To Reproduce

Steps to reproduce the issue: (i followed by Develop_docs.md )

  1. Run docker-compose -f docker-compose-dev.yaml up
  2. In the frontend folder, runnpm run build (or docker-compose -f docker-compose-dev.yaml exec frontend npm run dist)
  3. Copy the contents of frontend/dist/static/ to the static/ folder in the root: cp -r frontend/dist/static/* static/
  4. Restart the web service: docker-compose -f docker-compose-dev.yaml restart web
  5. Go to http//localhost/user/{username} and choose a random media item in the "My Media" tab.
  6. Observe the error below

Screenshots

image image

Environment

  • OS: Ubuntu 22.04
  • Installation method: Docker
  • Browser: Chrome

harryitc avatar Aug 01 '24 02:08 harryitc

Me too! I can't view the detailed error to troubleshoot it.

khaphan-github avatar Aug 01 '24 02:08 khaphan-github

I encountered a similar problem, and my solution was to install the dependencies that are consistent with the package-lock.json file.

ycmin95 avatar Sep 26 '24 16:09 ycmin95