question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency not found: babel-runtime/regenerator

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
nassancommented, Dec 24, 2018

I solved it by installing babel-runtime, because I had an error installing babel-runtime/regenerator as npm does not see it as a package.

In other words, I ran npm install --save babel-runtime

2reactions
jin-yong-yangcommented, Feb 26, 2020

npm install --save @babel/runtime

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found