-
Notifications
You must be signed in to change notification settings - Fork 192
Discrepancies in registering plugins #218
Comments
@garfbargle good observation. |
* lout now registers using dependencies.after logic similar to other project plugins. * previously lout registered vision and inert inside of using dependency.after logic.
@garfbargle |
@zoe-1 Awesome, that's what I was thinking should be the right approach after studying the project. Thanks for clearing that up! |
@zoe-1 I belive you did something wrong with this:
as you seem to be calling
But then i can not escape this:
|
@ferrao I have not seen your code, but most likely you are describing an asynchronous issue. Plugins are loaded at the initialization stage of a See
If we did the above in
Usually, the error message is:
Relevant Documentation: |
@zoe-1 both
are not correct. The Look at the docs example: const after = function (server, next) {
// Additional plugin registration logic
return next();
};
exports.register = function (server, options, next) {
server.dependency('yar', after);
return next();
}; It is quite clear for me that the code is wrong as it is, but i am lost as to what is the proper way to set this up using |
In /lib/start.js, our manifest sets us up and we register Inert and Vision.
In /lib/home.js, we set server dependencies for Inert and Vision. We wait for them before setting up the home plugin.
However, in /lib/lout.js, we re-register Inert and Vision along with the 'Lout' plugin.
Why does /lib/home.js not register the plugins instead? Why is there a difference between //lib/home.js and /lib/lout.js?
The text was updated successfully, but these errors were encountered: