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

Cannot read property 'updateTimeout' of undefined #113

Open
Rinse12 opened this issue Jan 18, 2023 · 1 comment
Open

Cannot read property 'updateTimeout' of undefined #113

Rinse12 opened this issue Jan 18, 2023 · 1 comment

Comments

@Rinse12
Copy link

Rinse12 commented Jan 18, 2023

Ocasionally I get this error,

 Uncaught TypeError: Cannot read properties of undefined (reading 'updateTimeout')
    at updateLock (node_modules/proper-lockfile/lib/lockfile.js:104:14)
    at /home/user2/Nextcloud/projects/plebbit/plebbit-js/node_modules/proper-lockfile/lib/lockfile.js:167:17
    at FSReqCallback.oncomplete (node:fs:192:23)
    at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17)

Seems like locks[file] is not defined by the time updateLock is called. Would love any insights on why.

@Rinse12
Copy link
Author

Rinse12 commented Jan 21, 2023

To give some context, I have a single file and a three locks that I frequently lock and unlock

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