KnowledgeGarden / lite-net-3

lite-net as a web app with authentication and privacy; simplest-possible note taking app for network and non-linear thinking.
Apache License 2.0
12 stars 0 forks source link

self is not defined #27

Closed micahchoo closed 1 year ago

micahchoo commented 1 year ago

I am getting this error when i launch it

self is not defined

ReferenceError: self is not defined
    at isPrivate (E:\note-lite\lite-net-3\routes\helper.js:25:13)
    at Layer.handle [as handle_request] (E:\note-lite\lite-net-3\node_modules\express\lib\router\layer.js:95:5)
    at next (E:\note-lite\lite-net-3\node_modules\express\lib\router\route.js:137:13)
    at Route.dispatch (E:\note-lite\lite-net-3\node_modules\express\lib\router\route.js:112:3)
    at Layer.handle [as handle_request] (E:\note-lite\lite-net-3\node_modules\express\lib\router\layer.js:95:5)
    at E:\note-lite\lite-net-3\node_modules\express\lib\router\index.js:281:22
    at param (E:\note-lite\lite-net-3\node_modules\express\lib\router\index.js:354:14)
    at param (E:\note-lite\lite-net-3\node_modules\express\lib\router\index.js:365:14)
    at Function.process_params (E:\note-lite\lite-net-3\node_modules\express\lib\router\index.js:410:3)
    at next (E:\note-lite\lite-net-3\node_modules\express\lib\router\index.js:275:10)
KnowledgeGarden commented 1 year ago

Interesting. What are the conditions for the error? Since it's been running fine for a long time, need to understand what's different.

aadityabhatia commented 1 year ago

I did a fresh checkout and ran the project. Unable to reproduce the error with NodeJS v19.3.0. Additional information will help troubleshoot.

micahchoo commented 1 year ago

Fixed it, i had to delete the .keep file remaining in the data folder. Thanks!

KnowledgeGarden commented 1 year ago

@micahchoo please feel free to use this thread to keep us posted on what you learn. It's been my opinion that this project is ripe for an upgrade to something like Postgres, and a few improvements to the UX. Your thoughts will be appreciated. Thanks - Jack

micahchoo commented 1 year ago

I came in cold from a link about other open source PKMs. So i'm still trying to figure out how to contextualise it