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

Fail setup at step 6 ./edit en #106

Open
shallow-beach opened this issue Aug 20, 2024 · 2 comments
Open

Fail setup at step 6 ./edit en #106

shallow-beach opened this issue Aug 20, 2024 · 2 comments

Comments

@shallow-beach
Copy link

I am on up-to-date MacOS on ARM.

I followed the README, and get stuck at step 6 with the following error:

$ ./edit en                                         
TypeError: LRUCache is not a constructor
    at new RequestCaptureStream (/Users/shallow-beach/js-info/server/modules/engine/log/requestCaptureStream.js:37:23)
    at Object.<anonymous> (/Users/shallow-beach/js-info/server/modules/engine/log/streams.js:37:17)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/Users/shallow-beach/js-info/server/modules/engine/log/index.js:23:15)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)

I am just using the current master branch of .info. Anyone bumped into this before?

@RyBhrdwj
Copy link

Yup, I encountered the same issue. You just need to fix the import statement.
Replace the import of 'lru-cache' in /Users/shallow-beach/js-info/server/modules/engine/log/requestCaptureStream.js with
let LRUCache = require('lru-cache');

@tarasyyyk
Copy link

Just add "lru-cache": "^11.0.0" to package.json > "dependencies"

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

3 participants