-
-
Notifications
You must be signed in to change notification settings - Fork 93
vite+electron 读取pdf 有问题 #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
在生产环境 尽然没有问题。 我打包后 生成的exe 安装之后 没有问题 。 |
+1 same problem |
兄弟,打包后,没有问题。我是vite,估计是不同的调试环境。 |
我也是vite打包后没问题,开发环境跟你这个报错一样,我的环境是浏览器不是electron,这个库没有用到electron,所以不是electron的问题 |
我看了这个插件针对的调试环境是webpack。vite跟webpack还是有些差异。 |
我把这个插件直接集成到webpack去读取pdf也一样直接报错,你在用这个库读取pdf的时候在pdf.js这个文件里面,有一个读取文件url的函数 webpack项目是create-react-app + react18 |
这个项目是用rollup的,按道理来说应该是比较靠近vite生态的 |
我没去动过,因为我就是用来读pdf,反正生产环境能用就没去管他,搞这个东西挺费时间,代码太多烧脑 |
我做的应用 平台 electron + vite + vue3
好像读取pdf有问题,其他格式没有问题。
其他格式 epub 没有问题
我看了pdf.js 里面端口是是webpack,是不是端口的问题。
有遇到的吗?
The text was updated successfully, but these errors were encountered: