Vue-cli: VueCli UI Launching Error: Cannot find module 'core-js/modules/es7.object.entries'

Created on 14 Aug 2018  ·  9Comments  ·  Source: vuejs/vue-cli

Version

3.0.0

Node and OS info

8.11.3

Steps to reproduce

The following error occurred when i launch the vue ui from command prompt.

What is expected?

Vue Client UI to launch

What is actually happening?

The following error shows in the browser console:

module.js:549
throw err;
^

Error: Cannot find module 'core-js/modules/es7.object.entries'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Nuno\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\apollo-upload-server\lib\middleware.js:14:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

bug ui upstream

Most helpful comment

if you are blocked by this, npm -g i core-js will get the required dependencies installed. Ran into this on a clean box just now.

All 9 comments

if you are blocked by this, npm -g i core-js will get the required dependencies installed. Ran into this on a clean box just now.

Getting the same issue here, installing core-js globally worked as @phil-scott-78 said.

Same issue here on mac.

npm install -g core-js

Fixed it for me

Same issue here on mac.

npm install -g core-js

Fixed it for me

Thanks man ! @phil-scott-78

This is an issue with apollo-upload-server 5.0.0 which uses some babel polyfill, but babel removed the dependency to core-js. This should be fixed in 6.0.0 once it gets stable and released in apollo-server, or if https://github.com/apollographql/apollo-server/issues/1536 is fixed we can just skip the whole module.

Just installed core-js globally and it worked. Thanks guys

it happened to us while using apollo as well. it is probably an independent from vue-cli. This issue should probably be in apollo-server-upload?

I did npm -g install core-js multiple times, but it did not work for me.
Turns out I'm using yarn for the project and yarn global add core-js did the trick for me.
Thanks @phil-scott-78

Use version 2.6.5 not 3.0.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunoseco picture brunoseco  ·  35Comments

joeirimpan picture joeirimpan  ·  35Comments

williamstar picture williamstar  ·  79Comments

yyx990803 picture yyx990803  ·  34Comments

yangzhuq picture yangzhuq  ·  33Comments