Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gatsby-starter-minimal-blog]: Cannot find module 'ajv/dist/compile/codegen' #1366

Open
tsasaki609 opened this issue Nov 24, 2024 · 0 comments
Labels
type: bug An issue or pull request relating to a bug

Comments

@tsasaki609
Copy link

Description

I installed gatsby-starter-minimal-blog and got an error when I tried to start the development server.

Steps to reproduce

Execute the following command.

gatsby new gatsby-starter-minimal-blog https://github.com/LekoArts/gatsby-starter-minimal-blog
cd gatsby-starter-minimal-blog
gatsby develop

Expected result

Development server starts up.

Actual result

The following error occurred.

  Error: Cannot find module 'ajv/dist/compile/codegen'
  Require stack:
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/ajv-k
  eywords/dist/definitions/typeof.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/ajv-k
  eywords/dist/keywords/typeof.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/ajv-k
  eywords/dist/keywords/index.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/ajv-k
  eywords/dist/index.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/schem
  a-utils/dist/validate.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/schem
  a-utils/dist/index.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/webpa
  ck-dev-middleware/dist/index.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/gatsb
  y/dist/utils/start-server.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/gatsb
  y/dist/services/start-webpack-server.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/gatsb
  y/dist/services/index.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/gatsb
  y/dist/state-machines/develop/services.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/gatsb
  y/dist/state-machines/develop/index.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/node_modules/gatsb
  y/dist/commands/develop-process.js
  - /Users/tsasaki/study/gatsbyjs/gatsby-starter-minimal-blog/.cache/tmp-11383-d
  dYJuVbXzljc

I installed the package and it solved the problem.

npm install --save-dev ajv

Environment

System:
OS: macOS 15.1.1
CPU: (10) arm64 Apple M4
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
Languages:
Python: 3.13.0 - /Users/tsasaki/.pyenv/shims/python
Browsers:
Chrome: 131.0.6778.86
Safari: 18.1.1
npmPackages:
gatsby: ^5.13.6 => 5.14.0
gatsby-plugin-feed: ^5.13.1 => 5.14.0
gatsby-plugin-manifest: ^5.13.1 => 5.14.0
gatsby-plugin-sitemap: ^6.13.1 => 6.14.0
gatsby-plugin-webpack-statoscope: ^1.0.3 => 1.0.3
npmGlobalPackages:
gatsby-cli: 5.14.0

@tsasaki609 tsasaki609 added the type: bug An issue or pull request relating to a bug label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug
Projects
None yet
Development

No branches or pull requests

1 participant