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
Starting the server produces this error: The dependency 'plugin-b' of plugin 'plugin-a' is not registered.
It does not happen if the plugins folder structure is like the following:
Prerequisites
Fastify version
5.0.0
Plugin version
6.0.1
Node.js version
22.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
15.0
Description
I've a project structure like the following:
. ├── index.mjs ├── package.json └── plugins ├── plugin-a │ └── index.mjs └── plugin-b └── index.mjs
Starting the server produces this error:
The dependency 'plugin-b' of plugin 'plugin-a' is not registered
.It does not happen if the
plugins
folder structure is like the following:To reproduce
package.json
index.mjs
plugins/plugin-a/index.mjs
plugins/plugin-b/index.mjs
type
node index.mjs
.Possible solution
I've modified the the function
loadPlugins
in theindex.js
file of the autoload module in the following way and it seems to work again:Link to code that reproduces the bug
No response
Expected Behavior
plugin-b
should be loaded beforeplugin-a
and should be produced the following log:The text was updated successfully, but these errors were encountered: