vue-pdf works (I see the rendered PDF) when I'm running the Vue app in hot-reload mode, but when I build the project, it doesn't work (the PDF doesn't show up), and I see an error in the console:
GET http://client.resolutewl.com/bfa0c7848d81ecc3380c.worker.js 404 (NOT FOUND)
How the webpage looks when running the Vue app in hot-reload mode:
How it looks when using the built code (including the error message):


I solved this by adding a custom Flask route that handled requests for files ending in
worker.jsand looked in the correct folder for that file:This problem was happening because the blueprint in my Flask app handling the Vue app's HTML/JS was configured to look for templates (including the Vue app's
index.htmlfile) in the./dist/folder, and the static files in./dist/static/folder, and this was allowing the Vue app to work, but there was nothing in the Flask configuration telling it how to handle a request for theworker.jsfile (worker-loadercreates thoseworker.jsfiles and is a dependency ofvue-pdf).