[Answered ]-Django webpack loader vuejs+typescript Refused to execute script frombecause its MIME type ('text/html') is not executable

1πŸ‘

βœ…

The usual reason for this error message is that when the browser tries to load that resource, the server returns an HTML page instead, for example if your router catches unknown paths and displays a default page without a 404 error. Of course that means the path does not return the expected CSS file / image / icon / whatever.

To make sure you are in that case, copy the path and try to access it directly in a new browser window or tab. You will see what your server sends.

That said, check your configuration and maybe examples of integration on github like this one https://github.com/tmpbook/django-with-vuejs

πŸ‘€Paulo Victor

Leave a comment