Skip to content

Dependency not found: babel-runtime/regenerator #119

@uboat46

Description

@uboat46

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

FranckFreiburger commented on Nov 28, 2018

@FranckFreiburger
Owner

does installing babel-runtime/regenerator solve the issue ?

wangyalijas

wangyalijas commented on Dec 6, 2018

@wangyalijas

I have the same problem. I want to know how to solve it.

nassan

nassan commented on Dec 24, 2018

@nassan

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

akaHeimdall

akaHeimdall commented on Jan 16, 2019

@akaHeimdall

Just thought I'd add to what @nassan stated: installing babel-runtime solves the problem. Thanks.

FranckFreiburger

FranckFreiburger commented on Jan 29, 2019

@FranckFreiburger
Owner

Duplicate of #13

jin-yong-yang

jin-yong-yang commented on Feb 26, 2020

@jin-yong-yang

npm install --save @babel/runtime

lemon-Boy

lemon-Boy commented on Mar 18, 2020

@lemon-Boy

error is still exit after npm install --save babel-runtime

stemount

stemount commented on Feb 19, 2022

@stemount

For anyone still looking, npm install --save @babel/runtime is the way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @akaHeimdall@stemount@nassan@uboat46@jin-yong-yang

        Issue actions

          Dependency not found: babel-runtime/regenerator · Issue #119 · FranckFreiburger/vue-pdf