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

Cannot find module './public/.meta/badges.json' #655

Open
razonyang opened this issue Feb 3, 2024 · 0 comments
Open

Cannot find module './public/.meta/badges.json' #655

razonyang opened this issue Feb 3, 2024 · 0 comments

Comments

@razonyang
Copy link

razonyang commented Feb 3, 2024

Hi, I'm trying to follow the developing section to add a live badge, but got the following error, which parts am I missed?

npm install

npm run dev  

> dev
> next dev

node:internal/modules/cjs/loader:1149
  const err = new Error(message);
              ^

Error: Cannot find module './public/.meta/badges.json'
Require stack:
- C:\Users\razon\Workspaces\badgen\badgen.net\next.config.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
    at C:\Users\razon\Workspaces\badgen\badgen.net\node_modules\next\dist\server\require-hook.js:54:36
    at Module._load (node:internal/modules/cjs/loader:990:27)
    at Module.require (node:internal/modules/cjs/loader:1237:19)
    at mod.require (C:\Users\razon\Workspaces\badgen\badgen.net\node_modules\next\dist\server\require-hook.js:64:28)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (C:\Users\razon\Workspaces\badgen\badgen.net\next.config.js:5:19)
    at Module._compile (node:internal/modules/cjs/loader:1378:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
    at Module.load (node:internal/modules/cjs/loader:1212:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\razon\\Workspaces\\badgen\\badgen.net\\next.config.js'
  ]
}

Node.js v21.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant