An issue arises when the tender attempts to register a Service of singleton type.
My approach involves utilizing IocContract
AppProvider
export default class AppProvider {
constructor(
protected app: ApplicationContract,
protected $container: IocContract
) {}
public register() {
// Register custom bindings
this.$container.singleton(
'Front/RegraService',
() => new RegraService()
)
}
Error
Cannot read properties of undefined (reading 'singleton')