Next.js Discord

Discord Forum

Strange error - Error: Cannot find module './lib/stringify'

Answered
Luke posted this in #help-forum
Open in Discord
Error: Cannot find module './lib/stringify'
Require stack:
- /workspaces/deepgram-conversational-demo/node_modules/braces/index.js
- /workspaces/deepgram-conversational-demo/node_modules/micromatch/index.js
- /workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/utils/pattern.js
- /workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/utils/index.js
- /workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/managers/tasks.js
- /workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at /workspaces/deepgram-conversational-demo/node_modules/next/dist/server/require-hook.js:55:36
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at mod.require (/workspaces/deepgram-conversational-demo/node_modules/next/dist/server/require-hook.js:65:28)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/workspaces/deepgram-conversational-demo/node_modules/braces/index.js:3:19)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1206:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/workspaces/deepgram-conversational-demo/node_modules/braces/index.js',
    '/workspaces/deepgram-conversational-demo/node_modules/micromatch/index.js',
    '/workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/utils/pattern.js',
    '/workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/utils/index.js',
    '/workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/managers/tasks.js',
    '/workspaces/deepgram-conversational-demo/node_modules/fast-glob/out/index.js'
  ]
}
Answered by Luke
Deleting node_modules, clearing cache, and deleting my package_lock resolved this problem
View full answer

1 Reply

Deleting node_modules, clearing cache, and deleting my package_lock resolved this problem
Answer