-
Notifications
You must be signed in to change notification settings - Fork 5
core-js dependencies not found.. #16
Comments
It seems to be related to changes in babel@7 and core-js@3. Doing:
And adding this to the top of ui/src/main.js:
Seems to solve the issue.. |
I didn't need to add "import 'core-js'" in my main.js file, just the first instruction already solve the problem. Thank you very much. |
I'm still having this issue. I'm not a web or node developer so I'm picking up a project from 3 years ago. It used to build and serve web pages. My packages.json file shows Vue dependency of version 2.5.16. When I do
The message also says that I can do In any case, I installed core-js, as suggested here and even added it to my package.json file and did Any ideas? |
Can you print the full contents of your package.json file? Most importantly the dependencies bits? I'd also be interested to see the output of |
Various comments related to babel and core-js can be found here. There might be useful hints in there too: vuejs/vue-cli#3678 |
One useful hint might be to make sure core-js v2 is installed, and not core-js v3. This can be done with |
I bet this is the problem. I'll try it. Thanks! |
Hi all, some strange thing happen in main.js. |
Thank you all - yousuff-tekhne solution worked for me. Not sure how/why this line got added: |
@arjunvasan Thank you for this! This is exactly what was happening to me so removing the import fixed my code as well. |
Something has changed in babel or one of the core dependencies, so core-js needs to be added to main.js:
The text was updated successfully, but these errors were encountered: