AUR0013
Cannot call resolve yyyy before calling prepare or after calling dispose.
Last updated
Was this helpful?
Cannot call resolve yyyy before calling prepare or after calling dispose.
Cannot call resolve yyyy before calling prepare or after calling dispose.
name (string)
This error occurs when InstanceProvider.resolve() is called but no instance has been set. This can happen if you try to resolve before calling prepare(instance), or after the provider has been disposed (which clears the instance).
Calling resolve() on an InstanceProvider before calling prepare(instance).
The InstanceProvider was disposed (via dispose()), clearing the instance before resolve was called.
The provider was constructed without an initial instance and prepare() was never called.
Always call prepare(instance) on the InstanceProvider before calling resolve().
Alternatively, instantiate the InstanceProvider with an initial instance as the second parameter.
Avoid calling resolve() after the provider has been disposed.
Check the stack trace to see where resolve() was called without an instance.
Search your codebase for all usages of InstanceProvider and ensure prepare() is called before resolve().
If using plugins, try disabling them one at a time to isolate the source.
Last updated
Was this helpful?
Was this helpful?