vue-pdf
vue-pdf copied to clipboard
vue-pdf打包会出现两个js文件不在static文件夹里,发布到线上pdf的文件也无法解析
vue-pdf打包会出现两个js文件不在static文件夹里,发布到线上pdf的文件也无法解析
Please use English language.
vue-pdf package will appear two js files are not in the static folder, and the files published to the online pdf cannot be parsed
I have this problem how to solve this problem, there is no solution. Why can't you parse it online and report an error "Uncaught SyntaxError: Unexpected token '<'"
我有这个问题怎么解决这个问题,没有解决方法。您为什么不能在线解析它并报告错误“ Uncaught SyntaxError:Unexpected token'<'” @FranckFreiburger
I also encountered the same problem. Is there a solution?
if (process.env.VUE_ENV === "server") { var PDFJS = require("pdfjs-dist/build/pdf.js"); PDFJS.PDFJS.disableWorker = true; } else { var PDFJS = require("pdfjs-dist/webpack.js"); }
to:
if (process.env.VUE_ENV === "server") { var PDFJS = require("pdfjs-dist/build/pdf.js"); PDFJS.disableWorker = true; } else { var PDFJS = require("pdfjs-dist/webpack.js"); }
How to fix this problem without changing the dependent packages
Need to change the Webpack configuration, but expect an official fix
Need to change the Webpack configuration, but expect an official fix
请问这个Webpack 配置怎么修改
https://www.jianshu.com/p/19d0a05eb870