Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nunonux opened this issue Aug 14, 2018 · 9 comments

Comments

@nunonux
Copy link

nunonux commented Aug 14, 2018

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)

@phil-scott-78
Copy link

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.

@korziee
Copy link

korziee commented Aug 15, 2018

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

@sphism
Copy link

sphism commented Aug 15, 2018

Same issue here on mac.

npm install -g core-js

Fixed it for me

@xkcoding
Copy link

Same issue here on mac.

npm install -g core-js

Fixed it for me

Thanks man ! @phil-scott-78

@Akryum Akryum changed the title VueCli UI Launching Error VueCli UI Launching Error: Cannot find module 'core-js/modules/es7.object.entries' Aug 15, 2018
@Akryum Akryum added needs team repro We acknowledged your report and will soon try to reproduce it bug and removed needs team repro We acknowledged your report and will soon try to reproduce it labels Aug 15, 2018
@Akryum
Copy link
Member

Akryum commented Aug 15, 2018

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 apollographql/apollo-server#1536 is fixed we can just skip the whole module.

@nunonux
Copy link
Author

nunonux commented Aug 15, 2018

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

@nunonux nunonux closed this as completed Aug 15, 2018
@Akryum Akryum reopened this Aug 15, 2018
@viztor
Copy link

viztor commented Aug 16, 2018

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?

@aayush420
Copy link

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

@Palec
Copy link

Palec commented Apr 4, 2019

Use version 2.6.5 not 3.0.0

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

No branches or pull requests

9 participants