Closed farzinnasiri closed 4 years ago
Hi, which node version are you using?
hi, this: Node.js v12.16.1.
It might relate to this issue https://github.com/lovell/sharp/issues/1668
Can you try upgrading gridsome by running npm install gridsome@0.7.13 --save
?
tnx. but now when gridsome is being compiled I have multiple errors with: Error: ENOENT: no such file or directory, scandir '/home/farzin/js/vue-developer-profile/node_modules/node-sass/vendor' like:
error in ./src/assets/styles/index.scss
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: ENOENT: no such file or directory, scandir '/home/farzin/js/vue-developer-profile/node_modules/node-sass/vendor'
at Object.readdirSync (fs.js:871:3)
at Object.getInstalledBinaries (/home/farzin/js/vue-developer-profile/node_modules/node-sass/lib/extensions.js:131:13)
at foundBinariesList (/home/farzin/js/vue-developer-profile/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/home/farzin/js/vue-developer-profile/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/home/farzin/js/vue-developer-profile/node_modules/node-sass/lib/errors.js:45:5)
at module.exports (/home/farzin/js/vue-developer-profile/node_modules/node-sass/lib/binding.js:15:30)
at Object.<anonymous> (/home/farzin/js/vue-developer-profile/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at getDefaultSassImpl (/home/farzin/js/vue-developer-profile/node_modules/sass-loader/dist/index.js:198:10)
at Object.loader (/home/farzin/js/vue-developer-profile/node_modules/sass-loader/dist/index.js:80:29)
@ ./src/assets/styles/index.scss 4:14-216 14:3-18:5 15:22-224
@ ./src/main.js
@ ./node_modules/gridsome/app/app.js
@ ./node_modules/gridsome/app/entry.client.js
@ multi webpack/hot/dev-server webpack-hot-middleware/client?name=app&reload=true&noInfo=true ./node_modules/gridsome/app/entry.client.js ./node_modules/gridsome/app/entry.sockjs.js
and another error:
error in ./src/components/PortfolioCard.vue?vue&type=custom&index=0&blockType=static-query
Module build failed (from ./node_modules/gridsome/lib/plugins/vue-components/lib/loaders/static-query.js):
Error: Cannot query field "title" on type "Project".
GraphQL request:81:9
80 | content
81 | title
| ^
82 | id
at Object.module.exports (/home/farzin/js/vue-developer-profile/node_modules/gridsome/lib/plugins/vue-components/lib/loaders/static-query.js:38:21)
@ ./src/components/PortfolioCard.vue?vue&type=custom&index=0&blockType=static-query 1:0-343 1:359-362 1:364-704 1:364-704
@ ./src/components/PortfolioCard.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/babel-loader/lib??ref--1-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/Index.vue?vue&type=script&lang=js&
@ ./src/pages/Index.vue?vue&type=script&lang=js&
@ ./src/pages/Index.vue
@ ./src/.temp/routes.js
@ ./node_modules/gridsome/app/router.js
@ ./node_modules/gridsome/app/entry.sockjs.js
@ multi webpack/hot/dev-server webpack-hot-middleware/client?name=app&reload=true&noInfo=true ./node_modules/gridsome/app/entry.client.js ./node_modules/gridsome/app/entry.sockjs.js
Hello. after running npm install and installing sum modules this error happend:
Can you help me please?