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.

npm error:“ Cannot find module 'core-js/modules/es7.object.entries'”

See original GitHub issue

Version

3.0.0

Node and OS info

Node 10.80, npm 6.2, windows10

Steps to reproduce

npm  i -g @vue/cli
vue ui

internal/modules/cjs/loader.js:583
Error: Cannot find module 'core-js/modules/es7.object.entries'

temp solutoin:

npm i core-js -g

and then, it works!

vue ui

🚀  Starting GUI...

🌠  Ready on http://localhost:8000

What is expected?

🚀 Starting GUI…

🌠 Ready on http://localhost:8000

What is actually happening?

internal/modules/cjs/loader.js:583

throw err;
^

Error: Cannot find module ‘core-js/modules/es7.object.entries’

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)

at Function.Module._load (internal/modules/cjs/loader.js:507:25)

at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)

at Object.<anonymous> (C:\Users\leaff\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\_apollo-upload-server@5.0.0@apollo-upload-server\lib\middleware.js:14:1)

at Module._compile (internal/modules/cjs/loader.js:689:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

at Module.load (internal/modules/cjs/loader.js:599:32)

at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

at Function.Module._load (internal/modules/cjs/loader.js:530:3)

temp solutoin:

npm i core-js -g

and then, it works!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tamilps2commented, Aug 15, 2018

I ran into the same issue in my mac. Solved it by installing the package globally.

npm install core-js -g

1reaction
themaxaboycommented, Aug 15, 2018

go to global directory npm or yarn

ex : ~/AppData/Local/Yarn/Data/global

yarn add core-js npm i core-js --save

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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