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.

Module not found: Error: Can't resolve '@babel/runtime/regenerator'

See original GitHub issue
  • vue-pdf version: latest vue-pdf at this time of making issue
  • vue.js version: 2.6.10
  • webpack version: 3.11.0
  • browser version: latest google chrome
  • OS version: mac os catalina

i got this error when just want to import the file to my vue js page

ERROR in ./node_modules/pdfjs-dist/lib/web/ui_utils.js
Module not found: Error: Can't resolve '@babel/runtime/regenerator' in '/Users/tony/Sites/bkcuvue/node_modules/pdfjs-dist/lib/web'
 @ ./node_modules/pdfjs-dist/lib/web/ui_utils.js 49:42-79
 @ ./node_modules/pdfjs-dist/lib/web/pdf_link_service.js
 @ ./node_modules/vue-pdf/src/pdfjsWrapper.js
 @ ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./node_modules/vue-pdf/src/vuePdfNoSss.vue
 @ ./node_modules/vue-pdf/src/vuePdfNoSss.vue
 @ ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/views/pertemuanBKCU/detail.vue
 @ ./resources/assets/js/views/pertemuanBKCU/detail.vue
 @ ./resources/assets/js/routes.js
 @ ./resources/assets/js/app.js
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
t0n1zzcommented, Apr 29, 2020

okay after entire day for searching i got solution that works for me… just run this npm install --save @babel/runtime and it works

0reactions
t0n1zzcommented, Apr 29, 2020

no luck for me… i still get the same error… wonder why

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Can't resolve 'babel-runtime/regenerator' · Issue #310 ...
Hi, I'm facing build error propably due to babel versions conflict. ... Module not found: Error: Can't resolve 'babel-runtime/regenerator' # ...
Read more >
Unable to resolve babel-runtime/regenerator - Stack Overflow
My iOS simulator is giving me a red screen and saying this: Unable to resolve module /Users/bobby/node_modules/babel-runtime/regenerator from / ...
Read more >
Module not found: Can't resolve @babel/runtime/helpers
To solve the error "Module not found: Error: Can't resolve '@babel/runtime/helpers'", make sure to install the @babel/runtime package by opening your terminal ...
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 >
@babel/runtime - npm
babel's modular runtime helpers. Latest version: 7.20.7, last published: 6 days ago. Start using @babel/runtime in your project by running ...
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