vue-pdf icon indicating copy to clipboard operation
vue-pdf copied to clipboard

These dependencies were not found

Open Dhauzur opened this issue 3 years ago • 5 comments

Everything was working smoothly yesterday and today all my branches and microservices were failing on builds using vue-pdf

My package.json

	"core-js": "^3.6.5",
	"pdfjs-dist": "^2.8.335",
	"vue": "^2.6.11",
	"vue-pdf": "^4.2.0",
	"vue-progressbar": "^0.7.5",
	"vue-router": "^3.2.0",
	"vuelidate": "^0.7.5",
	"vuetify": "^2.3.12",
	"vuex": "^3.4.0",
	"node-sass": "^4.12.0",
	"prettier": "^1.19.1",
	"sass": "^1.19.0",
	"sass-loader": "^8.0.2",
	"vue-cli-plugin-vuetify": "~2.0.7",
	"vue-template-compiler": "^2.6.11",
	"vuetify-loader": "^1.3.0"

npm -v 6.13.7 node -v v13.8.0 vue --version @vue/cli 4.2.2

To install them, you can run: npm install --save pdfjs-dist/es5/build/pdf.js worker-loader!pdfjs-dist/es5/build/pdf.worker.js pdfjs-dist/es5/web/pdf_viewer

  • pdfjs-dist/es5/build/pdf.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-pdf/src/vuePdfNoSss.vue?vue&type=script&lang=js&
  • worker-loader!pdfjs-dist/es5/build/pdf.worker.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-pdf/src/vuePdfNoSss.vue?vue&type=script&lang=js&
  • pdfjs-dist/es5/web/pdf_viewer in ./node_modules/vue-pdf/src/pdfjsWrapper.js

To install them, you can run: npm install --save pdfjs-dist/es5/build/pdf.js worker-loader!pdfjs-dist/es5/build/pdf.worker.js pdfjs-dist/es5/web/pdf_viewer

@FranckFreiburger

Dhauzur avatar Jun 08 '21 23:06 Dhauzur

I fix this by adding "pdfjs-dist": "2.5.207" in my package.json. I`m the same victim of this issue

BugBugGoAway avatar Jun 09 '21 05:06 BugBugGoAway

can you update the npm so that the npm repository is the latest code @BugBugGoAway

zhengyn0001 avatar Jun 09 '21 08:06 zhengyn0001

I am also experiencing this issue and I am using the NPM package as well

hcmlopes avatar Jun 10 '21 18:06 hcmlopes

can you update the npm so that the npm repository is the latest code @BugBugGoAway

For my Project, i cant upgrade my npm, my node version should stay on v8.11.0

GMArjun avatar Jun 11 '21 03:06 GMArjun

#313 latest working "pdfjs-dist" is 2.7.570

alex-eri avatar Jul 30 '21 02:07 alex-eri