I think one of two things is happening:
-
you have a service worker and your asset renaming confuses it. This article has more details: [Support Guide] Why do I see “Uncaught SyntaxError: Unexpected token <” errors? How can I use chunking or versioning for my assets at Netlify?
-
you’re not building+deploying what you think you are. This is the most frequent cause of site misbehavior - we built something that was not what you were expecting. The below screenshot shows how to download a copy of any successful deploy from its logs page in our UI. Then you’ll know if we are debugging “failure to serve” or “failure to build”, which have very different paths.
Could be wrong, but those are my best guesses tonight