LekoArts / gatsby-themes

Get high-quality and customizable Gatsby themes to quickly bootstrap your website! Choose from many professionally created and impressive designs with a wide variety of features and customization options.
https://themes.lekoarts.de
MIT License
1.87k stars 546 forks source link

`gatsby develop` errors out #624

Closed ragozzine closed 3 years ago

ragozzine commented 3 years ago

After installing the starter, going into the starter dir, and running gatsby develop I get errors locally

Output:

/Users/.../minimal-blog/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: Cannot find module '@gatsbyjs/reach-router/lib/utils'
Require stack:
- /Users/.../minimal-blog/node_modules/gatsby/dist/utils/find-page-by-path.js
- /Users/.../minimal-blog/node_modules/gatsby/dist/utils/websocket-manager.js
- /Users/.../minimal-blog/node_modules/gatsby/dist/utils/page-data.js
- /Users/.../minimal-blog/node_modules/gatsby/dist/utils/webpack-status.js
- /Users/.../minimal-blog/node_modules/gatsby/dist/commands/develop-process.js
- /Users/.../minimal-blog/.cache/tmp-36290-H2f75Rh4Kv4S
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:15)
    at Function.Module._load (node:internal/modules/cjs/loader:772:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.<anonymous> (/Users/ragozzine/saga/minimal-blog/node_modules/gatsby/src/utils/find-page-by-path.ts:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:816:12)
    at Module.require (node:internal/modules/cjs/loader:999:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/.../minimal-blog/node_modules/gatsby/dist/utils/find-page-by-path.js',
    '/Users/.../minimal-blog/node_modules/gatsby/dist/utils/websocket-manager.js',
    '/Users/.../minimal-blog/node_modules/gatsby/dist/utils/page-data.js',
    '/Users/.../minimal-blog/node_modules/gatsby/dist/utils/webpack-status.js',
    '/Users/.../minimal-blog/node_modules/gatsby/dist/commands/develop-process.js',
    '/Users/.../minimal-blog/.cache/tmp-36290-H2f75Rh4Kv4S'
  ]
}
boomspot commented 3 years ago

+1.

LekoArts commented 3 years ago

Hi! Please see https://github.com/LekoArts/gatsby-themes/discussions/613 for a solution. Thanks!

ragozzine commented 3 years ago

Worked like a charm. Thanks so much!