E0580 Loader returned what is not plain JSON
Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.
Why
What a build-time loader returns is written into the page's HTML and shipped as its seed, which the app reads with JSON.parse. So it must be plain JSON: objects, arrays, text, finite numbers, true, false and null, at most 64 levels deep and 1 MiB in all. undefined, functions, NaN and Infinity, dates and other class instances, and cycles are refused, because they would come back different, or not at all.
How to fix it
Return plain data: turn a date into its ISO text, drop functions, and ask the service for less when the value is too large.
In a terminal
duolith explain E0580