1.How to use
How to use Vue pdf Pdf preview using Vue PDF plug-in
2. Cause of error
To install them, you can run: NPM install — save core JS/modules/es.object.to-string.js core JS/modules/es.string.iterator.js core JS/modules/web.dom-collections.iterator.js pdfjs dist/Es5/build/pdf.js worker loader! pdfjs-dist/es5/build/pdf.worker.js pdfjs-dist/es5/web/pdf_ viewer
Vue PDF encapsulates pdf.js. The reason for the error is that the upgrade of pdf.js package version is not compatible with Vue PDF version.
3.How to solve it
You can specify the version of PDF.JS
Run the following command:
npm install [email protected]
Read More:
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/@babel
- webstorm npm install –save –save-exact –loglevel error react react-dom react-scripts has failed.
- [Solved] ERROR Failed to compile with 3 errors These dependencies were not found: * pdfjs-dist/es5/buil
- mvn install Error: Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- ERROR command failed: npm install –loglevel error vue-cli-plugin-cube-ui -D
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- Command failed: NPM install — loglevel error
- Using NPM to install Remix error in Windows 10
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- When NPM install, make: G + +: command not found will be prompted
- make modules_ Install compiles the kernel driver as a module, and the location of. Ko file in the root file
- Failed to install ISKernel Files,make sure you have appropriate privileges on this machine
- Error: no such keg: / usr / local / cellular / node & install NVM & Brew install & oh my Zsh. Git install & git set alias & no bundle URL press
- NPM install error cb.apply is not a function
- NPM install error | gyp err! Configure error
- NPM run serve reported an error “NPM err! Missing script: start”
- Install and run phantomjs on MAC
- NPM can’t find D: //nodejs/node all of The solution of sudden_modules/NPM/bin/npm-cli.js
- npm install Error: gyp verb `which` failed Error: not found: python
- Error: not found: python2 when executing NPM install