Dependency not found: babel-runtime/regenerator
See original GitHub issueUSING
"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
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Cannot find module 'babel-runtime/regenerator' Import locally ...
After looking for some guides, I found one that suggested not using import / export, so I tried that. After building and requiring...
Read more >babel/polyfill
Babel includes a polyfill that includes a custom regenerator runtime and core-js. This will emulate a full ES2015+ environment (no < Stage 4...
Read more >babel-runtime-regenerator - npm
Start using babel-runtime-regenerator in your project by running `npm i ... other projects in the npm registry using babel-runtime-regenerator.
Read more >Module not found: Can't resolve @babel/runtime/helpers
The @babel/runtime module should NOT be globally installed or be in your project's devDependencies , it should be in the dependencies object in...
Read more >VueJS - Module not found: Error: Can't resolve '@babel ...
It's looking for a dependency that is not installed. In your case you can do npm i babel-runtime --save to install that dependency...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
npm install --save @babel/runtime