FranckFreiburger / vue-pdf

vue.js pdf viewer
MIT License
2.21k stars 520 forks source link

These dependencies were not found #316

Open Dhauzur opened 3 years ago

Dhauzur commented 3 years ago

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

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

BugBugGoAway commented 3 years ago

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

zhengyn0001 commented 3 years ago

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

hcmlopes commented 3 years ago

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

GMArjun commented 3 years ago

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

alex-eri commented 3 years ago

313 latest working "pdfjs-dist" is 2.7.570