How to load a build index.js file that requires other modules

I am trying to make a plugin system for my app. Screenshot is the code loading the plugin. The index.js containing the plugin sits in a separate plugins folder (alone). When I try to run require() I get an error that the dependency of my plugin api has not been found(module not found error).
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server