apollographql / gatsby-theme-apollo

💜 Themes that we use to build Gatsby sites at Apollo
MIT License
370 stars 102 forks source link

In example: Error: error:0308010C:digital envelope routines::unsupported #235

Open AutomateAaron opened 3 years ago

AutomateAaron commented 3 years ago

Hello, I'm brand new to Gasby & this theme. I was just trying to get the example working, to do this I cloned the repo, navigated to the gatsby-theme-apollo/example directory & installed the dependencies:

yarn

and tried to start the dev server:

yarn start

But was given the following error:

 ERROR 

error:0308010C:digital envelope routines::unsupported

  Error: error:0308010C:digital envelope routines::unsupported

  - hash:67 new Hash
    node:internal/crypto/hash:67:19

  - node:crypto:130 Object.createHash
    node:crypto:130:10

  - createHash.js:135 module.exports
    [gatsby-theme-apollo]/[webpack]/lib/util/createHash.js:135:53

  - NormalModule.js:417 NormalModule._initBuildHash
    [gatsby-theme-apollo]/[webpack]/lib/NormalModule.js:417:16

  - NormalModule.js:452 
    [gatsby-theme-apollo]/[webpack]/lib/NormalModule.js:452:10

  - NormalModule.js:323 
    [gatsby-theme-apollo]/[webpack]/lib/NormalModule.js:323:13

  - LoaderRunner.js:367 
    [gatsby-theme-apollo]/[loader-runner]/lib/LoaderRunner.js:367:11

  - LoaderRunner.js:233 
    [gatsby-theme-apollo]/[loader-runner]/lib/LoaderRunner.js:233:18

  - LoaderRunner.js:111 context.callback
    [gatsby-theme-apollo]/[loader-runner]/lib/LoaderRunner.js:111:13

  - index.js:59 
    [gatsby-theme-apollo]/[babel-loader]/lib/index.js:59:103

It is totally possible I've done something wrong. If so, what did I do wrong? If not, I'd like to report this as a bug.

jeffreycwitt commented 2 years ago

Same issue here.

jgarrow commented 2 years ago

Hi @AaronNBrock, apologies for the delay in response. This repo uses yarn workspaces, so you'll actually need to run the commands in the root instead of inside of the example directory.