Lucee 5.4.8.2 / Coldbox 6.8.1 -- Missing Dependency Error

Lucee 5.4.8.2 / Coldbox 6.8.1

Hi, I am having a problem with coldbox missing dependency error:

The target ‘handlers.Main’ requested a missing dependency with a Name of ‘utils’ and DSL of ‘formatContent@utils’

I have the custom module in the modules_app folder and have the moduleConfig.cfc set up correctly as well.

image

Locally, I run the same app on Lucee 5.3.9 / Coldbox 6.8.1 with no problems at all, but I don’t think its a Lucee problem as such.

I have tried:

property name=“utils” inject=“provider:formatContent@utils”;

and also:

var utils = wirebox.getInstance(“formatContent@utils”);

But the problem persists.

Any suggestions on where the problem may lie?

If I use the following within the function:

var utils = wirebox.getInstance(“formatContent@utils”);

I get the following slightly more helpful error message.

The instance could not be located in any declared scan location(s) (models) or full path location or parent or children