Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Unable to compile core-js in colony-example-vue #118

Closed
matt-roe opened this issue Sep 18, 2019 · 4 comments
Closed

Unable to compile core-js in colony-example-vue #118

matt-roe opened this issue Sep 18, 2019 · 4 comments
Labels
bug Something isn't working help-wanted Extra attention is needed

Comments

@matt-roe
Copy link

matt-roe commented Sep 18, 2019

Description

Write a detailed description of the issue/feature/question.

Trying basic setup of colony-example-vue

matt@Matt-buntu:~/colony-example-vue/colony-example-vue$ sudo yarn serve
yarn run v1.17.3
$ vue-cli-service serve
 INFO  Starting development server...
10% building 2/2 modules 0 activeℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/matt/colony-example-vue/colony-example-vue/public
ℹ 「wds」: 404s will fallback to /index.html
98% after emitting CopyPlugin

 ERROR  Failed to compile with 47 errors                             11:25:32 PM

These dependencies were not found:

* core-js/modules/es6.number.constructor in ./src/api/funding.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/colony/funding/Claim.vue?vue&type=script&lang=js&
* core-js/modules/es6.object.keys in ./src/api/task.js, ./src/api/skills.js and 9 others
* core-js/modules/es6.regexp.to-string in ./src/helpers/ecp.js
* core-js/modules/es6.string.iterator in ./src/api/domain.js, ./src/api/task.js and 3 others
* core-js/modules/es6.string.sub in ./src/api/funding.js
* core-js/modules/es7.object.entries in ./src/api/accounts.js
* core-js/modules/es7.object.get-own-property-descriptors in ./src/api/task.js, ./src/api/skills.js and 9 others
* core-js/modules/web.dom.iterable in ./src/api/domain.js, ./src/api/accounts.js and 13 others

To install them, you can run: npm install --save core-js/modules/es6.number.constructor core-js/modules/es6.object.keys core-js/modules/es6.regexp.to-string core-js/modules/es6.string.iterator core-js/modules/es6.string.sub core-js/modules/es7.object.entries core-js/modules/es7.object.get-own-property-descriptors core-js/modules/web.dom.iterable

Steps to Reproduce

If you are reporting a bug, list the steps you took that led to the issue.

Followed install steps for colony-example-vue on ubuntu 18.04

Remediation:

https://stackoverflow.com/questions/55308769/module-not-found-error-cant-resolve-core-js-es6

yarn add core-js@2.5.7
matt@Matt-buntu:~/colony-example-vue/colony-example-vue$ sudo yarn serve
yarn run v1.17.3
$ vue-cli-service serve
 INFO  Starting development server...
10% building 2/2 modules 0 activeℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/matt/colony-example-vue/colony-example-vue/public
ℹ 「wds」: 404s will fallback to /index.html
98% after emitting CopyPlugin

 WARNING  Compiled with 1 warnings                                   11:37:56 PM

 warning  in ./node_modules/web3-eth-accounts/src/scrypt.js

Critical dependency: the request of a dependency is an expression


  App running at:
  - Local:   http://localhost:8080/ 
  - Network: http://10.77.111.39:8080/

  Note that the development build is not optimized.
  To create a production build, run yarn build.
@ryanchristo
Copy link
Contributor

ryanchristo commented Sep 18, 2019

Hi @matt-roe! Can you update the issue so that it includes more information about what your are attempting to do? Also, can you please use code blocks?

What do you mean when you say "Followed install steps on ubuntu 18.04"? Are you attempting to run the colony-example-vue package on a virtual machine? I'm also a bit confused why you are running yarn commands with sudo and this might be related to the issue.

@ryanchristo ryanchristo added the question Questions and clarifications label Sep 18, 2019
@matt-roe
Copy link
Author

matt-roe commented Sep 18, 2019 via email

@ryanchristo
Copy link
Contributor

Sorry about that, I will put things in blocks next time

No problem! You can also edit the issue description.

maybe you can add some packages I was seeing as potential solutions

What packages were you seeing as potential solutions?

Also, feel free to open a PR that sets core-js to 2.6.9 rather than ^3.1.4. It looks likes the issue is might be a breaking change in version 3.

@ryanchristo ryanchristo added bug Something isn't working help-wanted Extra attention is needed and removed question Questions and clarifications labels Sep 18, 2019
@ryanchristo ryanchristo changed the title core-js modules not found Unable to compile core-js in colony-example-vue Sep 18, 2019
@matt-roe
Copy link
Author

vuejs/vue-cli#3678

I will attempt a PR

@chmanie chmanie closed this as completed Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants