I had an have this problem:
I had this problem when i did pass an array of array in "providers". so nested an predefined array in an array like "provides: [ list ]", and looked at the code which accepts a function or object which looks like an provider (e.g. having some specific function and props) or an list thereof.
But here it's an Array of a single Provider conf, so looks good.
The "If" here is, and that's my hunch here, if the provider conf is wrong an returns an Error and not what auth js expect (an provider) it could behave like that too...
Haven't figured out whats wrong either. Perhaps a version conflict between auth js, svelte and other lib.