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 [ERR_MODULE_NOT_FOUND]: Cannot find module 'eventsource-parser' #41

Open
carry2web opened this issue Feb 28, 2023 · 1 comment
Open

Comments

@carry2web
Copy link

carry2web commented Feb 28, 2023

I followed the install instructions, npm install gave no errors, but node server.js returned:

node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'eventsource-parser\dist\index.mjs' imported from chatgpt-chrome-extension\node_modules\chatgpt\build\index.js
Did you mean to import eventsource-parser/dist/index.js?
at new NodeError (node:internal/errors:399:5)
at finalizeResolution (node:internal/modules/esm/resolve:326:11)
at moduleResolve (node:internal/modules/esm/resolve:945:10)
at defaultResolve (node:internal/modules/esm/resolve:1153:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.14.2

@carry2web
Copy link
Author

carry2web commented Feb 28, 2023

after these two steps, the issue was fixed, from command line in dir where extension is unpacked:

npm install eventsource-parser

Then Module iconv-lite was missing, which was resolved with

npm install iconv-lite

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