continue
continue copied to clipboard
F5 to run it, get Uncaught Error Error: Could not find module root given file: "node:internal/modules/cjs/loader". Do you have a `package.json` file?
Before submitting your bug report
- [ ] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [ ] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows X86
- Continue: v0.8.27
- IDE: VSCode 1.78.2
Description
I've installed all dependencies, and run the project, got this error:
Process exited with code 1
Uncaught Error Error: Could not find module root given file: "node:internal/modules/cjs/loader". Do you have a package.json
file?
at getRoot (d:\workspace\github\continue\pkg\out\index.js:13151:17)
at bindings (d:\workspace\github\continue\pkg\out\index.js:13078:37)
at ../core/node_modules/sqlite3/lib/sqlite3-binding.js (d:\workspace\github\continue\pkg\out\index.js:13166:41)
at __require (d:\workspace\github\continue\pkg\out\index.js:18:51)
at ../core/node_modules/sqlite3/lib/sqlite3.js (d:\workspace\github\continue\pkg\out\index.js:13216:20)
at __require (d:\workspace\github\continue\pkg\out\index.js:18:51)
at
To reproduce
No response
Log output
No response
Hi @inoutw, thanks for sharing the logs! I finally found the cause of this and it appears to have been solved by renaming the pkg folder to "binary" to avoid a naming conflict (https://github.com/continuedev/continue/commit/3ad9e3e5f22bd4f1823ab8a8fc9ec745ebb62ac0). I'm going to close the issue, but please re-open and let me know if pulling the latest still leads to the same exact error.
@sestinj Sorry, I think it should be reopen. Because I checked out v0.8.25 version which was fixed by PR https://github.com/continuedev/continue/commit/3ad9e3e5f22bd4f1823ab8a8fc9ec745ebb62ac0 .
However, it still does not work as below:
@micli Is this happening on the preview branch as well?