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

Error: Cannot find module './lib/encoding' #38

Open
lewisMachilika opened this issue Jan 14, 2023 · 0 comments
Open

Error: Cannot find module './lib/encoding' #38

lewisMachilika opened this issue Jan 14, 2023 · 0 comments

Comments

@lewisMachilika
Copy link

I have pulled the *qrcodescan.in repo whenever I run it it is giving me the below error?
Can some help to resove the issue or maybe change the code to normal react js structure because I am even failing to build the project.

INFO: Gracefully shutting down. Please wait...
node:internal/modules/cjs/loader:995
  const err = new Error(message);
              ^

Error: Cannot find module './lib/encoding'
Require stack:
- C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\negotiator\index.js
- C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\accepts\index.js
- C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\compression\index.js
- C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\serve\bin\serve.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at loadModule (C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\negotiator\index.js:108:16)
    at Negotiator.encodings (C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\negotiator\index.js:56:28)
    at Accepts.encoding.Accepts.encodings (C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\accepts\index.js:143:26)
    at ServerResponse.onResponseHeaders (C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\compression\index.js:178:27)
    at ServerResponse.writeHead (C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\on-headers\index.js:35:16)
    at module.exports (C:\Users\machilika.l\Documents\projects\qrcodescan.in\node_modules\serve-handler\src\index.js:754:11) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\machilika.l\\Documents\\projects\\qrcodescan.in\\node_modules\\negotiator\\index.js',
    'C:\\Users\\machilika.l\\Documents\\projects\\qrcodescan.in\\node_modules\\accepts\\index.js',
    'C:\\Users\\machilika.l\\Documents\\projects\\qrcodescan.in\\node_modules\\compression\\index.js',
    'C:\\Users\\machilika.l\\Documents\\projects\\qrcodescan.in\\node_modules\\serve\\bin\\serve.js'
  ]
}

Node.js v18.12.1
ERROR: "serve" exited with 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