- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 531
Closed
Description
USING
"dependencies": {
"animejs": "^2.2.0",
"axios": "^0.18.0",
"cheerio": "^1.0.0-rc.2",
"firebase": "^5.5.8",
"nuxt": "^2.2.0",
"require": "^2.4.20",
"vue-pdf": "^4.0.0",
"vuelidate": "^0.7.4",
"vuetify": "^1.3.6"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^5.7.0",
"eslint-config-standard": "^12.0.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-html": "^4.0.6",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2"
}
In Component.vue
<template>
<pdf :src="'~/assets/planes/actuaria.pdf'"></pdf>
</template>
<script>
import pdf from 'vue-pdf'
export default {
components: {
pdf
}
}
</script>
On Terminal
This dependency was not found:
* babel-runtime/regenerator in ./node_modules/pdfjs-dist/lib/web/ui_utils.js
To install it, you can run: npm install --save babel-runtime/regenerator
Activity
FranckFreiburger commentedon Nov 28, 2018
does installing babel-runtime/regenerator solve the issue ?
wangyalijas commentedon Dec 6, 2018
I have the same problem. I want to know how to solve it.
nassan commentedon Dec 24, 2018
I solved it by installing
babel-runtime
, because I had an error installingbabel-runtime/regenerator
as npm does not see it as a package.In other words, I ran
npm install --save babel-runtime
akaHeimdall commentedon Jan 16, 2019
Just thought I'd add to what @nassan stated: installing
babel-runtime
solves the problem. Thanks.FranckFreiburger commentedon Jan 29, 2019
Duplicate of #13
jin-yong-yang commentedon Feb 26, 2020
npm install --save @babel/runtime
lemon-Boy commentedon Mar 18, 2020
error is still exit after npm install --save babel-runtime
stemount commentedon Feb 19, 2022
For anyone still looking,
npm install --save @babel/runtime
is the way to go.