Maybe this helps? sso-open-ldap
I'm trying to follow the basic tutorial on writing nodebb plugins.
But I'm using
module.parent.require('./database') in my plugin but it isn't working.
It simply says:
Error: Cannot find module './database'
Can anyone point me to the issue?
I'd suggest using
@pitaj Thanks! That worked!
Do you think the docs should be updated to include that?
module.parent.require also works fine. It depends whether you are calling it from a dependent file, or from the main plugin library file.