We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting this error after updating the package:
GET http://localhost:8080/7.worker.js net::ERR_ABORTED 404 (Not Found) Uncaught (in promise) Error: Setting up fake worker failed: "Cannot load script at: http://localhost:8080/7.worker.js".
@arkokoley
The text was updated successfully, but these errors were encountered:
This comment on the related PDF.js issue might be useful mozilla/pdf.js#10478 (comment)
Sorry, something went wrong.
@wbazalea Assuming you are using webpack to build your vue system:
add worker-loader
npm i --save worker-loader
Add this to your webpack.config.js
module.exports = { module: { rules: [ { test: /\.worker\.js$/, use: { loader: 'worker-loader', options: { filename: '7.worker.js' } } }, ... ] }
And add this to App.vue / main.js
App.vue
main.js
/* eslint-disable */ var pdfwoker = require('worker-loader!pdfjs-dist/build/pdf.worker') /* eslint-enable */
No branches or pull requests
I'm getting this error after updating the package:
GET http://localhost:8080/7.worker.js net::ERR_ABORTED 404 (Not Found)
Uncaught (in promise) Error: Setting up fake worker failed: "Cannot load script at: http://localhost:8080/7.worker.js".
@arkokoley
The text was updated successfully, but these errors were encountered: