v8.14.0
http:\no-reproduction-link.com
ps: I'll try to provide an example as soon as posible
Just Execute:
$ yarn dev
Execute script without any error
ERROR Failed to compile with 3 errors friendly-errors 15:05:41
These dependencies were not found: friendly-errors 15:05:41
friendly-errors 15:05:41
* core-js/library/fn/object/assign in ./node_modules/babel-runtime/core-js/object/assign.js friendly-errors 15:05:41
* core-js/library/fn/symbol in ./node_modules/babel-runtime/core-js/symbol.js friendly-errors 15:05:41
* core-js/library/fn/symbol/iterator in ./node_modules/babel-runtime/core-js/symbol/iterator.js friendly-errors 15:05:41
I also tried to add core-js
to the devDependencies
yarn.lock
file:https://gist.github.com/JimmyBastos/a263db0ad891a5566da372a6ea31ac6d
duplicate of #5313
Should be fixed in v2.5.1.
Should be fixed in v2.5.1.
Same error in 2.5.1
`ERROR Failed to compile with 9 errors friendly-errors 10:20:06
These dependencies were not found: friendly-errors 10:20:06
friendly-errors 10:20:06
why close this issue? So many people have this problem,although it has upgrade to 2.5.1
+1 here.
package.json:
{
"name": "test-majesty",
"version": "1.0.0",
"description": "My tremendous Nuxt.js project",
"author": "Defite",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server",
"build": "nuxt build",
"start": "cross-env NODE_ENV=production node server/index.js",
"generate": "nuxt generate",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"precommit": "npm run lint"
},
"dependencies": {
"@nuxtjs/apollo": "^4.0.0-rc4",
"@nuxtjs/axios": "^5.3.6",
"@nuxtjs/bulma": "^1.2.1",
"apollo-cache-inmemory": "^1.5.1",
"apollo-link": "^1.2.11",
"apollo-link-http": "^1.5.14",
"core-js": "^3.0.0",
"cross-env": "^5.2.0",
"express": "^4.16.4",
"graphql": "^14.1.1",
"graphql-tag": "^2.10.1",
"nuxt": "^2.4.0"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^0.0.1",
"babel-eslint": "^10.0.1",
"eslint": "^5.15.1",
"eslint-config-standard": ">=12.0.0",
"eslint-loader": "^2.1.2",
"eslint-plugin-import": ">=2.16.0",
"eslint-plugin-jest": ">=22.3.0",
"eslint-plugin-node": ">=8.0.1",
"eslint-plugin-nuxt": ">=0.4.2",
"eslint-plugin-promise": ">=4.0.1",
"eslint-plugin-standard": ">=4.0.0",
"eslint-plugin-vue": "^5.2.2",
"nodemon": "^1.18.9"
}
}
Result:
ERROR Failed to compile with 28 errors friendly-errors 19:02:05
These dependencies were not found: friendly-errors 19:02:05
friendly-errors 19:02:05
* core-js/modules/es6.array.find in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es6.array.iterator in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es6.date.to-string in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.function.name in ./.nuxt/index.js friendly-errors 19:02:05
* core-js/modules/es6.object.assign in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es6.object.keys in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es6.object.to-string in ./.nuxt/router.js friendly-errors 19:02:05
* core-js/modules/es6.promise in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es6.regexp.constructor in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.regexp.match in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es6.regexp.replace in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.regexp.search in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.regexp.split in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.regexp.to-string in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.string.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 19:02:05
* core-js/modules/es6.string.iterator in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es6.string.repeat in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.string.starts-with in ./.nuxt/utils.js friendly-errors 19:02:05
* core-js/modules/es6.symbol in ./.nuxt/axios.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 19:02:05
* core-js/modules/es7.array.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 19:02:05
* core-js/modules/es7.promise.finally in ./.nuxt/client.js friendly-errors 19:02:05
* core-js/modules/es7.symbol.async-iterator in ./.nuxt/axios.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 19:02:05
* core-js/modules/web.dom.iterable in ./.nuxt/axios.js, ./.nuxt/components/nuxt-link.client.js
@Defite in your package json you specified core-js@3. It should be core-js@2 馃槉
@Defite in your package json you specified core-js@3. It should be core-js@2 馃槉
Now it's working, thank you)
doesnt work in codesandbox 馃檭
@Defite in your package json you specified core-js@3. It should be core-js@2 馃槉
thanks, it helps me a lot!
@Defite in your package json you specified core-js@3. It should be core-js@2 馃槉
Thanks, it works.
Very weird problem, got it after installing some other dependencies (agastya
, sweetalert2
). Reinstalling core-js
did the trick (for exactly the same version: ^3.6.5
).
Most helpful comment
@Defite in your package json you specified core-js@3. It should be core-js@2 馃槉