You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snippets found on README.md show examples of usage for a particular setup and doesn't showcase configuration options. Also, they don't work out of the box.
You export the plugin definition function and then call seneca.use with the name of the file. You can either require it in or if you like to be terse, let Seneca make the require call.
Snippets found on README.md show examples of usage for a particular setup and doesn't showcase configuration options. Also, they don't work out of the box.
Another problem with the examples is that they somewhat contradict the following from the Getting Started guide on senecajs.org:
This doesn't hold true for this plugin as it expects the exported function of the module to be bound to the
seneca
instance:So, actually, you cannot
require
the module manually and must letseneca
do that.Anyway, this:
Should really be something like:
The text was updated successfully, but these errors were encountered: