storybookjs / frontpage

🌐 The website for storybook.js.org
https://storybook.js.org
MIT License
216 stars 119 forks source link

[Bug] Can't clone & run repo #690

Open rChaoz opened 7 months ago

rChaoz commented 7 months ago

Describe the bug

Can't follow steps to run the site locally.

Steps to reproduce the behavior

  1. git clone
  2. yarn
  3. Sync the docs from the main repo
  4. yarn start:docs-only

Screenshots and/or logs

$ yarn start:docs-only
yarn run v1.22.22
$ GATSBY_DOCS_ONLY=true npm run develop

> gatsby-storybook-frontpage@1.0.0 develop
> gatsby develop -H 0.0.0.0

success compile gatsby files - 1.572s

 ERROR #10123  CONFIG

We encountered an error while trying to load your site's gatsby-config. Please fix the error and try again.

  Error: Cannot find module '../generated/versions/current/package.json'

Result of ls src/generated:

graphql.ts

It seems like there should be more stuff here, but there isn't.

Environment

Additional context

yarn build also fails with:

 ERROR #11321  PLUGIN

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

Source GraphQL API: HTTP error 401 Unauthorized

  Error: Source GraphQL API: HTTP error 401 Unauthorized

  - fetch.js:11 exports.fetchWrapper
    [storybook-frontpage]/[gatsby-source-graphql]/fetch.js:11:11

  - task_queues:96 processTicksAndRejections
    node:internal/process/task_queues:96:5
/home/.../storybook-frontpage/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: write EPIPE
    at process.target._send (node:internal/child_process:874:20)
    at process.target.send (node:internal/child_process:747:19)
    at Object.<anonymous> (/home/.../storybook-frontpage/node_modules/gatsby-worker/dist/child.js:86:3)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:22:47
Emitted 'error' event on process instance at:
    at processEmit [as emit] (/home/.../storybook-frontpage/node_modules/signal-exit/index.js:199:34)
    at node:internal/child_process:878:39
    at processTicksAndRejections (node:internal/process/task_queues:78:11) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}