funkhaus / 8baseDemo-frontend

3 stars 1 forks source link

Failed to compile using yarn #1

Closed contortion747 closed 4 years ago

contortion747 commented 4 years ago

Repro: 1) git clone https://github.com/funkhaus/8baseDemo-frontend.git 2) cd 8baseDemo-frontend 2) yarn 3) yarn dev

Result: ERROR Failed to compile with 45 errors friendly-errors 01:16:42

These dependencies were not found: friendly-errors 01:16:42 friendly-errors 01:16:42

One way to fix this is to add

"resolutions": {
    "core-js": "2.6.11"
}

to package.json

See https://github.com/nuxt/nuxt.js/issues/5287#issuecomment-641235629

drewbaker commented 4 years ago

Yeah I think it all comes down to what version of core-js you have in your system, as that is used by Nuxt behind the scenes.

I have "core-js": "^2.6.11" in my package file's dependencies on other Nuxt projects and it works.