GithubHelp home page GithubHelp logo

smakosh / gatsby-portfolio-dev Goto Github PK

View Code? Open in Web Editor NEW
784.0 11.0 196.0 1.14 MB

A portfolio for developers

Home Page: https://portfolio.smakosh.com/

License: MIT License

JavaScript 97.69% CSS 2.31%
gatsby styled-components react a11y portfolio

gatsby-portfolio-dev's Introduction

Portfolio for developers

Deploy with Vercel

Powered by Vercel

Next js version?

There you go

Theme

Gatsby-theme-portfolio

Features

  • Eslint/Prettier configured
  • Scores 100% on a11y / Performance / PWA / SEO
  • PWA (desktop & mobile)
  • Easy to customize
  • Nice project structure
  • Amazing illustrations by Undraw.co
  • Tablet & mobile friendly
  • Continuous deployment with Vercel
  • Or with Netlify, check Netlify branch
  • A contact form protected by Google Recaptcha
  • Can be deployed with one click
  • Functional components with Recompose React Hooks! ready to migrate to React hooks!
  • Fetches your Github pinned projects with most stars (You could customize this if you wish)
  • One click deployment to Vercel

Design

Project on Behance

Structure

.
├── data
│   └── config              # SEO related tags
├── src
│   └── assets              # Assets
│   │   │── icons             # icons
│   │   │── illustrations     # illustrations from (undraw.co)
│   │   └── thumbnail         # cover of your website when it's shared to social media
│   ├── components          # Components
│   │   │── common            # Common components
│   │   │── landing           # Components used on the landing page
│   │   └── theme             # Header & Footer
│   └── pages               # Pages
└── static                  # favicon & Netlify redirects

Prerequisites

Online

  1. Create an account at Formium and grab your form endpoint url
  2. Grab a Google recaptcha key from Google Recaptcha

Make sure to select V2 checkbox

  1. Grab your Github token from GitHub
  2. Click Deploy with Vercel and pass in your:
  • Formium form endpoint
  • Google recaptcha public key
  • Github token

To Env variables section.

For the contact form to work, you will need to update the url in here

Locally

  1. Create an account at Formium
  2. Grab a Google recaptcha key from Google Recaptcha
  3. Grab your Github token from GitHub
  4. Run cp .env.development.template .env.development
  5. Run npm i && npm start

You could run vercel env pull to get your env variables from Vercel.

Deploying locally to Vercel

I highly recommend that you push to GitHub/GitLab and deploy your repository to Vercel instead or just hit the Deploy button.

Clean the cache

This removes the .cache/ & public/ folders

yarn reset

Built with

  • Adobe XD
  • Gatsby
  • React & GraphQL
  • Formium
  • Google recaptcha
  • VSCode
  • And these useful of JavaScript libraries & Gatsby plugins package.json

License

This project is licensed under the MIT License - see the LICENSE.md file for more details

Contributors

Support

If you love this Gatsby template and want to support me, you can do so through my GitHub profile.

gatsby-portfolio-dev's People

Contributors

2wce avatar ajayns avatar benji011 avatar davidavz avatar dependabot[bot] avatar hugos avatar kageetai avatar lauthieb avatar leualmeida avatar manula2004 avatar omniwired avatar ryanleecode avatar sasannnn avatar smakosh avatar yassinrais avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gatsby-portfolio-dev's Issues

Dependency (sharp) not compatible with Node v13

Love the template, running into this issue on a fresh installation of Node:

error /Users/brandon/code/portfolio/node_modules/sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: /Users/brandon/code/portfolio/node_modules/sharp
Output:
info sharp Using existing vendored libvips v8.7.4
prebuild-install WARN install No prebuilt binaries found (target=13.8.0 runtime=node arch=x64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/usr/local/Cellar/node/13.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/brandon/code/portfolio/node_modules/sharp/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/Cellar/node/13.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/brandon/Library/Caches/node-gyp/13.8.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/brandon/Library/Caches/node-gyp/13.8.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/node/13.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/brandon/Library/Caches/node-gyp/13.8.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/brandon/code/portfolio/node_modules/sharp',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
  CXX(target) Release/obj.target/sharp/src/metadata.o
  CXX(target) Release/obj.target/sharp/src/stats.o
../src/stats.cc:130:19: error: no matching member function for call to 'Set'
        channels->Set(i, channelStat);
        ~~~~~~~~~~^~~
/Users/brandon/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/brandon/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
1 error generated.
make: *** [Release/obj.target/sharp/src/stats.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/13.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.3.0
gyp ERR! command "/usr/local/Cellar/node/13.8.0/bin/node" "/usr/local/Cellar/node/13.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/brandon/code/portfolio/node_modules/sharp
gyp ERR! node -v v13.8.0

Downgrading my Node version to 10.16.0 allowed me to proceed with the installation. So I think sharp just needs to be updated!

See https://sharp.pixelplumbing.com/changelog#v0232---28supthsup-october-2019 for release notes on when they started supporting Node v13

Clarification on Recaptcha key

Step 2 of the prerequisites states:

"Grab a Google recaptcha key from Google Recaptcha", but there are two keys (one site key, and one secret key) that we're provided with upon recaptcha signup.

Which of the keys are we supposed to plug into the GATSBY_PORTFOLIO_RECAPTCHA_KEY env var, the secret key or the site key?

Update the starter

Things to do

  • Remove webpack aliases and add js configuration json file
  • Restructure files
  • Upgrade dependencies
  • Add another branch with a markdown blog setup
  • Make it easy to customize the colors of this starter including the colors of the illustrations

Failed to build in Netlify

I'm getting the same error after been adding the environment variable in netlify.

12:12:51 AM: Build ready to start
12:12:54 AM: build-image version: 9cade8af58c2cf3a17a1e9433d2e979149488837
12:12:54 AM: build-image tag: v3.3.5
12:12:54 AM: buildbot version: 2bcc42d646155245bd5134a9110b521ad3e07e97
12:12:54 AM: Fetching cached dependencies
12:12:54 AM: Starting to download cache of 254.9KB
12:12:54 AM: Finished downloading cache in 93.293663ms
12:12:54 AM: Starting to extract cache
12:12:54 AM: Failed to fetch cache, continuing with build
12:12:54 AM: Starting to prepare the repo for build
12:12:54 AM: No cached dependencies found. Cloning fresh repo
12:12:54 AM: git clone https://github.com/byteshiva/gatsby-portfolio-dev
12:12:55 AM: Preparing Git Reference refs/heads/master
12:12:55 AM: Starting build script
12:12:55 AM: Installing dependencies
12:12:56 AM: Attempting node version 'v12.13.0' from .nvmrc
12:12:57 AM: Downloading and installing node v12.13.0...
12:12:58 AM: Downloading https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz...
12:12:58 AM: 
##################                                                        25.8%
12:12:58 AM: 
######################################################################## 100.0
12:12:58 AM: %
12:12:58 AM: Computing checksum with sha256sum
12:12:58 AM: Checksums matched!
12:13:01 AM: Now using node v12.13.0 (npm v6.12.0)
12:13:02 AM: Attempting ruby version 2.6.2, read from environment
12:13:03 AM: Using ruby version 2.6.2
12:13:04 AM: Using PHP version 5.6
12:13:04 AM: Started restoring cached node modules
12:13:04 AM: Finished restoring cached node modules
12:13:04 AM: Installing NPM modules using NPM version 6.12.0
12:13:08 AM: npm
12:13:08 AM:  WARN
12:13:08 AM:  deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
12:13:13 AM: npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
12:14:21 AM: > [email protected] install /opt/build/repo/node_modules/gatsby-plugin-manifest/node_modules/sharp
12:14:21 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
12:14:22 AM: info
12:14:22 AM: sharp
12:14:22 AM:  Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
12:14:32 AM: > [email protected] install /opt/build/repo/node_modules/gatsby-plugin-sharp/node_modules/sharp
12:14:32 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
12:14:32 AM: info
12:14:32 AM:  sharp
12:14:32 AM:  Using cached /opt/buildhome/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz
12:14:34 AM: > [email protected] install /opt/build/repo/node_modules/gatsby-transformer-sharp/node_modules/sharp
12:14:34 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
12:14:34 AM: info
12:14:34 AM:  sharp
12:14:34 AM:  Using cached /opt/buildhome/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz
12:14:35 AM: > [email protected] install /opt/build/repo/node_modules/sharp
12:14:35 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
12:14:35 AM: info
12:14:35 AM: sharp
12:14:35 AM:  Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
12:14:38 AM: > [email protected] postinstall /opt/build/repo/node_modules/@babel/polyfill/node_modules/core-js
12:14:38 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:38 AM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
12:14:38 AM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
12:14:38 AM: > https://opencollective.com/core-js 
12:14:38 AM: > https://www.patreon.com/zloirock 
12:14:38 AM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
12:14:38 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/bmp/node_modules/core-js
12:14:38 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:38 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/core/node_modules/core-js
12:14:38 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/custom/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/gif/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/jpeg/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-blit/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-blur/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-color/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-contain/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-cover/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-crop/node_modules/core-js
12:14:39 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-displace/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-dither/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-flip/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-gaussian/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-invert/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-mask/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-normalize/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:40 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-print/node_modules/core-js
12:14:40 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-resize/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-rotate/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-scale/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugins/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/png/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/tiff/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/types/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:41 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/utils/node_modules/core-js
12:14:41 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:42 AM: > [email protected] postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
12:14:42 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:42 AM: > [email protected] postinstall /opt/build/repo/node_modules/core-js-pure
12:14:42 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:42 AM: > [email protected] postinstall /opt/build/repo/node_modules/favicons-webpack-plugin/node_modules/core-js
12:14:42 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:42 AM: > [email protected] postinstall /opt/build/repo/node_modules/favicons/node_modules/core-js
12:14:42 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:42 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby/node_modules/core-js
12:14:42 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:43 AM: > [email protected] postinstall /opt/build/repo/node_modules/jimp/node_modules/core-js
12:14:43 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:43 AM: > [email protected] postinstall /opt/build/repo/node_modules/potrace/node_modules/core-js
12:14:43 AM: > node -e "try{require('./postinstall')}catch(e){}"
12:14:43 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby-telemetry
12:14:43 AM: > node src/postinstall.js || true
12:14:44 AM: > [email protected] postinstall /opt/build/repo/node_modules/cwebp-bin
12:14:44 AM: > node lib/install.js
12:14:44 AM:   ✔ cwebp pre-build test passed successfully
12:14:44 AM: > [email protected] postinstall /opt/build/repo/node_modules/mozjpeg
12:14:44 AM: > node lib/install.js
12:14:45 AM:   ✔ mozjpeg pre-build test passed successfully
12:14:45 AM: > [email protected] postinstall /opt/build/repo/node_modules/pngquant-bin
12:14:45 AM: > node lib/install.js
12:14:46 AM:   ✔ pngquant pre-build test passed successfully
12:14:46 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
12:14:46 AM: > node scripts/postinstall.js
12:14:46 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby
12:14:46 AM: > node scripts/postinstall.js
12:14:46 AM: > [email protected] postinstall /opt/build/repo/node_modules/styled-components
12:14:46 AM: > node ./scripts/postinstall.js || exit 0
12:14:46 AM: Use styled-components at work? Consider supporting our development efforts at https://opencollective.com/styled-components
12:14:48 AM: npm notice created a lockfile as package-lock.json. You should commit this file.
12:14:48 AM: npm WARN
12:14:48 AM:  [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
12:14:48 AM: npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
12:14:48 AM: npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
12:14:48 AM: npm WARN [email protected] requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
12:14:48 AM: npm WARN [email protected] requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
12:14:48 AM: npm WARN optional
12:14:48 AM:  SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
12:14:48 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:14:48 AM: npm
12:14:48 AM: WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
12:14:48 AM: npm
12:14:48 AM:  WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:14:48 AM: added 2200 packages from 1047 contributors and audited 25257 packages in 103.563s
12:14:48 AM: found 0 vulnerabilities
12:14:49 AM: NPM modules installed
12:14:49 AM: Started restoring cached go cache
12:14:49 AM: Finished restoring cached go cache
12:14:49 AM: unset GOOS;
12:14:49 AM: unset GOARCH;
12:14:49 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
12:14:49 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
12:14:49 AM: go version >&2;
12:14:49 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
12:14:49 AM: go version go1.12 linux/amd64
12:14:49 AM: Installing missing commands
12:14:49 AM: Verify run directory
12:14:49 AM: Executing user command: echo SITE_RECAPTCHA_KEY=$SITE_RECAPTCHA_KEY >> .env.production && gatsby build
12:14:51 AM: success open and validate gatsby-configs - 0.033s
12:14:53 AM: success load plugins - 1.120s
12:14:53 AM: success onPreInit - 0.010s
12:14:53 AM: success delete html and css files from previous builds - 0.015s
12:14:53 AM: success initialize cache - 0.010s
12:14:53 AM: success copy gatsby files - 0.044s
12:14:53 AM: success onPreBootstrap - 0.007s
12:14:53 AM: success createSchemaCustomization - 0.001s
12:14:53 AM: error "gatsby-source-graphql" threw an error while running the sourceNodes lifecycle:
12:14:53 AM: Response not successful: Received status code 401
12:14:53 AM: not finished source and transform nodes - 0.204s
12:14:53 AM: Skipping functions preparation step: no functions directory set
12:14:53 AM: Caching artifacts
12:14:53 AM: Started saving node modules
12:14:53 AM: Finished saving node modules
12:14:53 AM: Started saving pip cache
12:14:53 AM: Finished saving pip cache
12:14:53 AM: Started saving emacs cask dependencies
12:14:53 AM: Finished saving emacs cask dependencies
12:14:53 AM: Started saving maven dependencies
12:14:53 AM: Finished saving maven dependencies
12:14:53 AM: Started saving boot dependencies
12:14:53 AM: Finished saving boot dependencies
12:14:53 AM: Started saving go dependencies
12:14:53 AM: Finished saving go dependencies
12:14:56 AM: Error running command: Build script returned non-zero exit code: 1
12:14:56 AM: Failing build: Failed to build site
12:14:56 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
12:14:56 AM: Finished processing build request in 2m2.855899617s

check readme file and follow the steps, you forgot to add the env variables to Netlify.

Originally posted by @smakosh in #12 (comment)

"gatsby-source-graphql" / ERROR #11321 PLUGIN

Hey,

Right after a fresh install and typing gatsby develop I get an error apparently linked to the gatsby-source-graphql.

Here's the stack trace:

gatsby develop
success open and validate gatsby-configs - 0.072s
success load plugins - 1.403s
success onPreInit - 0.014s
success initialize cache - 0.017s
success copy gatsby files - 0.130s
success onPreBootstrap - 0.008s
success createSchemaCustomization - 0.006s

 ERROR #11321  PLUGIN

"gatsby-source-graphql" threw an error while running the sourceNodes lifecycle:

Response not successful: Received status code 401

warn The gatsby-source-graphql plugin has generated no Gatsby nodes. Do you need it?
success source and transform nodes - 0.411s
success building schema - 0.360s
success createPages - 0.004s
success createPagesStatefully - 0.206s
success onPreExtractQueries - 0.003s
success update schema - 0.069s

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "github" on type "Query".

If you don't expect "github" to exist on the type "Query" it is most likely a typo.
However, if you expect "github" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "github" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: src/components/landing/Projects/index.jsx:18:9

failed extract queries from components - 0.452s
success write out requires - 0.072s
success write out redirect data - 0.006s
warn The icon(./static/favicon/favicon-512.png) you provided to 'gatsby-plugin-manifest' is not square.
The icons we generate will be square and for the best results we recommend you provide a square icon.

success Build manifest and related icons - 0.250s
success onPostBootstrap - 0.292s

info bootstrap finished - 9.413 s

success run queries - 0.054s - 4/4 73.67/s

I commented on the issue in the following thread first before opening a new issue -> gatsbyjs/gatsby#20015

Here's my dependencies if it helps:

"dotenv": "^6.2.0",
    "formik": "^1.4.1",
    "gatsby": "^2.17.7",
    "gatsby-image": "^2.2.30",
    "gatsby-plugin-canonical-urls": "^2.0.8",
    "gatsby-plugin-favicon": "^3.1.6",
    "gatsby-plugin-google-analytics": "^2.0.8",
    "gatsby-plugin-manifest": "^2.2.6",
    "gatsby-plugin-nprogress": "^2.0.7",
    "gatsby-plugin-offline": "^3.0.14",
    "gatsby-plugin-react-helmet": "^3.0.2",
    "gatsby-plugin-sharp": "^2.2.13",
    "gatsby-plugin-sitemap": "^2.0.3",
    "gatsby-plugin-styled-components": "^3.0.4",
    "gatsby-source-filesystem": "^2.1.35",
    "gatsby-source-graphql": "^2.1.21",
    "gatsby-transformer-sharp": "^2.2.7",
    "prop-types": "^15.6.2",
    "react": "^16.11.0",
    "react-anchor-link-smooth-scroll": "^1.0.12",
    "react-dom": "^16.11.0",
    "react-google-recaptcha": "^1.0.5",
    "react-helmet": "^5.2.0",
    "styled-components": "^4.1.3",
    "yup": "^0.26.6"

Next.js version?

Hi there, first of all, thanks for this starter, very cool!

Is your feature request related to a problem? Please describe.

It would be nice to be able to use this template with Next.js

Describe the solution you'd like

A version of the template in Next.js

Describe alternatives you've considered

Having the community create this Next.js version

Netlify version maintenance

Is the netlify version being maintained? I ask because there is no theme provider for that version (for example).

Failed to compile

Anyone else is getting this error?

GraphQL Error Encountered 1 error(s):

  • Unknown field 'github' on type 'Query'.

    file: ./gatsby-portfolio/new/gatsby-portfolio-dev/src/components/landing/Projects/index.jsx
    

Form doesn't work

There seems to be some confusion between Formik & Formium integration going on?

Am I missing something? Sending any POST request to "http://localhost:8000/api/contact" will just return a 404.

Currently pressing the submit on the form always fails the try/catch in the ContactForm component.

Problem with deployment on Netlify

I have been reading all previous bug reports, the readme.md and the resource you suggested on "Integrating Netlify Form Handling in Gatsby".

YET, I cannot figure out how to solve the issue Netlify keeps throwing at me.
It works locally and I have added the tokens for reCAPTCHA to the Netlify environment.

Here is an image of my deployment error:
image

I would greatly appreciate any help you can provide!

How to get the Formium endpoint?

Describe the bug
First of all: Amazing starter! It's just an awesome work you did here.

This is more a heads up really. If I'm not missing something, there is no easy way to grab the endpoint on the Formium site.
After creating a form I have to go to "View & Share your form" where I get a URL of the form https://forms.formium.io/f/<MY_FORM_ID>. I go to that URL and with the browser developer tools open, send a form. In the network tab, I find a POST request to the URL https://api.formium.io/v1/form/<MY_FORM_ID>/submit. That last one is the one to put on the GATSBY_PORTFOLIO_RECAPTCHA_KEY environment variable.

I may be missing the proper way to grab the endpoint, but if Formium UI changed I hope this is helpful to you.

Thanks very much!

graphql issue

Getting this issue, not sure why. ive created a .env file and added my personal github token

screenshot 2018-12-27 at 21 59 05

gatsby-plugin-favicon

Everytime I try to run the development server I get an error with the favicon-plugin? Help. I'm a newbie, but I've been troubleshooting for a while and even after installing the plugin, I get the same error?

'There was a problem loading plugin "gatsby-plugin-favicon". Perhaps you need to install its package?
Use --verbose to see actual error.

ERROR #10226 CONFIG'

Failed to compile

I'm getting this issue when I attempt to run gatsby develop on a fresh clone. I understand the first error to be related to my Github access token (I have yet to put that in), but I'm unsure of the second one


UNHANDLED REJECTION Type with name "File" does not exists

Error: Type with name "File" does not exists

  • TypeStorage.js:44 SchemaComposer.get
    [portfolio]/[graphql-compose]/lib/TypeStorage.js:44:13

  • SchemaComposer.js:530 SchemaComposer.getAnyTC
    [portfolio]/[graphql-compose]/lib/SchemaComposer.js:530:19

  • schema.js:768 parentTypesToChildren.forEach
    [portfolio]/[gatsby]/dist/schema/schema.js:768:41

  • Map.forEach

  • schema.js:767 addConvenienceChildrenFields
    [portfolio]/[gatsby]/dist/schema/schema.js:767:25

  • schema.js:160 updateSchemaComposer
    [portfolio]/[gatsby]/dist/schema/schema.js:160:9

image

Cannot read property 'repositories' of null

Hi @smakosh,

thanks for the effort you invested in your template. Looks very promising! Though I have troubles creating (yarn build) the site (with the latest commit b9a434e). FTR, yarn start works without any issue.

image

What am I missing? Is it related to the scope of my Github token? Maybe my issue is related to the scope I have chosen.

My .env.development looks something like

GITHUB_TOKEN=2fa....

And I have changed this https://github.com/smakosh/gatsby-portfolio-dev/blob/master/src/components/landing/Projects/index.jsx#L13 to:

export const Projects = () => (
	<StaticQuery
		query={graphql`
      {
        github {
          repositoryOwner(login: "natterstefan") {
            repositories(
              first: 8
              orderBy: { field: STARGAZERS, direction: DESC }
            ) {
              edges {
                node {
                  id
                  name
                  url
                  description
                  stargazers {
                    totalCount
                  }
                  forkCount
                }
              }
            }
          }
        }
      }
    `}
		render={({
			github: {
				repositoryOwner: {
					repositories: { edges },
				},
			},
		}) => (

I feel like I am missing just a small piece. Thank you!

Deployment to Netlify fails at build

I clicked on the try this starter on Netlify.
It begins the build process but then it fails.
The error happens at 10:12:45 AM
Below the error log:

10:11:10 AM: Build ready to start
10:11:16 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
10:11:16 AM: build-image tag: v3.3.2
10:11:16 AM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc
10:11:16 AM: Fetching cached dependencies
10:11:16 AM: Failed to fetch cache, continuing with build
10:11:16 AM: Starting to prepare the repo for build
10:11:16 AM: No cached dependencies found. Cloning fresh repo
10:11:16 AM: git clone https://github.com/smakosh/gatsby-portfolio-dev
10:11:17 AM: Preparing Git Reference refs/heads/master
10:11:18 AM: Starting build script
10:11:18 AM: Installing dependencies
10:11:18 AM: Attempting node version 'v12.13.0' from .nvmrc
10:11:19 AM: Downloading and installing node v12.13.0...
10:11:19 AM: Downloading https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz...
10:11:19 AM:
###############################
10:11:19 AM: 43.4%
10:11:19 AM:
##################################
10:11:19 AM: ###################################### 100.0%
10:11:20 AM: Computing checksum with sha256sum
10:11:20 AM: Checksums matched!
10:11:22 AM: Now using node v12.13.0 (npm v6.12.0)
10:11:22 AM: Attempting ruby version 2.6.2, read from environment
10:11:24 AM: Using ruby version 2.6.2
10:11:24 AM: Using PHP version 5.6
10:11:24 AM: Started restoring cached node modules
10:11:24 AM: Finished restoring cached node modules
10:11:24 AM: Installing NPM modules using NPM version 6.12.0
10:11:32 AM: npm
10:11:32 AM: WARN
10:11:32 AM: deprecated [email protected]: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
10:12:25 AM: > [email protected] install /opt/build/repo/node_modules/gatsby-plugin-manifest/node_modules/sharp
10:12:25 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
10:12:26 AM: info
10:12:26 AM: sharp
10:12:26 AM: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
10:12:28 AM: > [email protected] install /opt/build/repo/node_modules/gatsby-plugin-sharp/node_modules/sharp
10:12:28 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
10:12:28 AM: info
10:12:28 AM: sharp
10:12:28 AM: Using cached /opt/buildhome/.npm/_libvips/libvips-8.8.1-linux-x64.tar.gz
10:12:29 AM: > [email protected] install /opt/build/repo/node_modules/gatsby-transformer-sharp/node_modules/sharp
10:12:29 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
10:12:29 AM: info
10:12:29 AM: sharp
10:12:29 AM: Using cached /opt/buildhome/.npm/_libvips/libvips-8.8.1-linux-x64.tar.gz
10:12:30 AM: > [email protected] install /opt/build/repo/node_modules/sharp
10:12:30 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
10:12:31 AM: info
10:12:31 AM: sharp
10:12:31 AM: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@babel/polyfill/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:33 AM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
10:12:33 AM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
10:12:33 AM: > https://opencollective.com/core-js
10:12:33 AM: > https://www.patreon.com/zloirock
10:12:33 AM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@gatsbyjs/relay-compiler/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/bmp/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/core/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/custom/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/gif/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/jpeg/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:33 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-blit/node_modules/core-js
10:12:33 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-blur/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-color/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-contain/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-cover/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-crop/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-displace/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-dither/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-flip/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-gaussian/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-invert/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:34 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-mask/node_modules/core-js
10:12:34 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-normalize/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-print/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-resize/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-rotate/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugin-scale/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/plugins/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/png/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/tiff/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/types/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/@jimp/utils/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:35 AM: > [email protected] postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
10:12:35 AM: > node postinstall || echo "ignore"
10:12:36 AM: > [email protected] postinstall /opt/build/repo/node_modules/favicons-webpack-plugin/node_modules/core-js
10:12:36 AM: > node postinstall || echo "ignore"
10:12:36 AM: > [email protected] postinstall /opt/build/repo/node_modules/favicons/node_modules/core-js
10:12:36 AM: > node postinstall || echo "ignore"
10:12:36 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby/node_modules/core-js
10:12:36 AM: > node postinstall || echo "ignore"
10:12:36 AM: > [email protected] postinstall /opt/build/repo/node_modules/jimp/node_modules/core-js
10:12:36 AM: > node postinstall || echo "ignore"
10:12:36 AM: > [email protected] postinstall /opt/build/repo/node_modules/potrace/node_modules/core-js
10:12:36 AM: > node postinstall || echo "ignore"
10:12:36 AM: > [email protected] postinstall /opt/build/repo/node_modules/relay-runtime/node_modules/core-js
10:12:36 AM: > node postinstall || echo "ignore"
10:12:37 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby-telemetry
10:12:37 AM: > node src/postinstall.js
10:12:37 AM: > [email protected] postinstall /opt/build/repo/node_modules/cwebp-bin
10:12:37 AM: > node lib/install.js
10:12:38 AM: ✔ cwebp pre-build test passed successfully
10:12:38 AM: > [email protected] postinstall /opt/build/repo/node_modules/mozjpeg
10:12:38 AM: > node lib/install.js
10:12:38 AM: ✔ mozjpeg pre-build test passed successfully
10:12:38 AM: > [email protected] postinstall /opt/build/repo/node_modules/pngquant-bin
10:12:38 AM: > node lib/install.js
10:12:38 AM: ✔ pngquant pre-build test passed successfully
10:12:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
10:12:39 AM: > node scripts/postinstall.js
10:12:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby
10:12:39 AM: > node scripts/postinstall.js
10:12:39 AM: > [email protected] postinstall /opt/build/repo/node_modules/styled-components
10:12:39 AM: > node ./scripts/postinstall.js || exit 0
10:12:39 AM: Use styled-components at work? Consider supporting our development efforts at https://opencollective.com/styled-components
10:12:40 AM: npm notice created a lockfile as package-lock.json. You should commit this file.
10:12:40 AM: npm WARN
10:12:40 AM: [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
10:12:40 AM: npm WARN
10:12:40 AM: [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
10:12:40 AM: npm WARN [email protected] requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
10:12:40 AM: npm
10:12:40 AM: WARN [email protected] requires a peer of graphql@^0.13.0 but none is installed. You must install peer dependencies yourself.
10:12:40 AM: npm WARN optional
10:12:40 AM: SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
10:12:40 AM: npm
10:12:40 AM: WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:12:40 AM: npm WARN optional
10:12:40 AM: SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
10:12:40 AM: npm WARN
10:12:40 AM: notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
10:12:40 AM: added 2151 packages from 1031 contributors and audited 26421 packages in 75.655s
10:12:40 AM: found 0 vulnerabilities
10:12:41 AM: NPM modules installed
10:12:41 AM: Started restoring cached go cache
10:12:41 AM: Finished restoring cached go cache
10:12:41 AM: unset GOOS;
10:12:41 AM: unset GOARCH;
10:12:41 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
10:12:41 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
10:12:41 AM: go version >&2;
10:12:41 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
10:12:41 AM: go version go1.12 linux/amd64
10:12:41 AM: Installing missing commands
10:12:41 AM: Verify run directory
10:12:41 AM: Executing user command: gatsby build
10:12:43 AM: success open and validate gatsby-configs - 0.021s
10:12:43 AM: success load plugins - 0.714s
10:12:45 AM: success onPreInit - 0.002s
10:12:45 AM: success delete html and css files from previous builds - 0.010s
10:12:45 AM: success initialize cache - 0.031s
10:12:45 AM: success copy gatsby files - 0.030s
10:12:45 AM: success onPreBootstrap - 0.010s
10:12:45 AM: error "gatsby-source-graphql" threw an error while running the sourceNodes lifecycle:
10:12:45 AM: Response not successful: Received status code 401
10:12:45 AM:
10:12:45 AM: ServerError: Response not successful: Received status code 401
10:12:45 AM:
10:12:45 AM: - index.js:23 Object.exports.throwServerError
10:12:45 AM: [repo]/[apollo-link-http-common]/lib/index.js:23:17
10:12:45 AM:
10:12:45 AM: - index.js:48
10:12:45 AM: [repo]/[apollo-link-http-common]/lib/index.js:48:21
10:12:45 AM:
10:12:45 AM: - task_queues.js:93 processTicksAndRejections
10:12:45 AM: internal/process/task_queues.js:93:5
10:12:45 AM:
10:12:45 AM:
10:12:45 AM: not finished source and transform nodes - 0.276s
10:12:45 AM: Skipping functions preparation step: no functions directory set
10:12:45 AM: Caching artifacts
10:12:45 AM: Started saving node modules
10:12:45 AM: Finished saving node modules
10:12:45 AM: Started saving pip cache
10:12:45 AM: Finished saving pip cache
10:12:45 AM: Started saving emacs cask dependencies
10:12:45 AM: Finished saving emacs cask dependencies
10:12:45 AM: Started saving maven dependencies
10:12:45 AM: Finished saving maven dependencies
10:12:45 AM: Started saving boot dependencies
10:12:45 AM: Finished saving boot dependencies
10:12:45 AM: Started saving go dependencies
10:12:45 AM: Finished saving go dependencies
10:12:47 AM: Error running command: Build script returned non-zero exit code: 1
10:12:47 AM: Failing build: Failed to build site
10:12:47 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
10:12:47 AM: Finished processing build request in 1m31.961372722s

For help

Hello, Boss, I am a rookie. May I ask that this mistake has happened since I 'gatsby develop' Do you know how to resolve it

There was an error in your GraphQL query:

Cannot query field "github" on type "Query".

If you don't expect "github" to exist on the type "Query" it is most likely a typo.
However, if you expect "github" to exist there are a couple of solutions to common problems:

  • If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
  • The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
  • You want to optionally use your field "github" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add at least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: D:/VSCodeProject/Gatsby-blog/resume-blog/src/components/landing/Projects/index.jsx

Issue building due to 'sharp'

I'm getting the below error when trying to set up this repo. I'm following all the prerequisites, and upon running npm run start this happens.

image

Some missing assets.

While looking at the portfolio online I've spotted that some assts don't load and throw 404.
Zrzut ekranu z 2019-11-18 05-23-49

Just a friendly poke about it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.