0

I have installed angular-18n to my project, and when I include the script :

<script src="/node_modules/angular-i18n/angular-locale_fr.js"></script>

I'm getting this error :

Refused to execute script from

'http://localhost:8080/node_modules/angular-i18n/angular-locale_fr.js' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

How to solve it?

Akber Iqbal
  • 14,487
  • 12
  • 48
  • 70
thomas
  • 1,201
  • 2
  • 15
  • 35
  • Possible duplicate of [Refused to execute script, strict MIME type checking is enabled?](https://stackoverflow.com/questions/40574159/refused-to-execute-script-strict-mime-type-checking-is-enabled) – Dale K Nov 30 '18 at 08:57
  • Which web server are you using? – Akber Iqbal Dec 02 '18 at 04:13

0 Answers0