as I start my server I get an error saying:
cannot find the module: *******\bagpipes\lib\fittings\FITTING_NAME
it seems to not search for the fitting under api/fitting (where my fitting is placed).
so I've looked at the code and I think that the problem is inside the file bagpipes\lib\fittingTypes\system.js:12
and that this:
pipes.config.fittingsDir
should be changed to
pipes.config.userFittingsDirs
like it have been used in other places in the project
just for info, I'm using bagpipes throw swagger-express
this change is not needed.
my problem was that the name of the function I returned from the create function was not the same as the one in the default.yaml config
I have a problem adding my own fitting.
in my default.yaml config file I have:
fiitingDirs: [ api/fittings]
and I added my fitting file under api/fittings.
as I start my server I get an error saying:
cannot find the module: *******\bagpipes\lib\fittings\FITTING_NAME
it seems to not search for the fitting under api/fitting (where my fitting is placed).
so I've looked at the code and I think that the problem is inside the file
bagpipes\lib\fittingTypes\system.js:12
and that this:pipes.config.fittingsDir
should be changed topipes.config.userFittingsDirs
like it have been used in other places in the projectjust for info, I'm using bagpipes throw swagger-express