Failed to load module script: The server responded with a non-JavaScript, CSS MIME type of "text/x-scss"

Falko

Hery guys,

I received a bit of code by my professor. When running the liveserver localy, the js is giving me an error in the browser terminal.

Failed to load module script: The server responded with a non-JavaScript, CSS MIME type of "text/x-scss". Strict MIME type checking is enforced for module scripts per HTML spec.

I have never implemented css files in the javascript and I never used scss so I dont know how to work with this issue. I hope someone here knows how to help me.

greetings

cklimowski

You will need to use a tool like node-sass or webpack to compile the scss file into css, and then reference that in your project.

https://sass-lang.com/guide

sass is compiled to css using a compiler before being sent to the browser. Browsers don't know what to do with scss files.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

GCP App Engine / Angular - Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html"

From Dev

Failed to load module script because of a disallowed MIME type

From Javascript

ES6 modules in local files - The server responded with a non-JavaScript MIME type

From Dev

Deploying angular 8 application locally to IIS errors with 'The server responded with a non-Javascript MIME type of "text/html"?'

From Dev

Failed to load resource: the server responded with a status of 404 (Not Found) css

From Dev

Expected JS module, server responded with MIME?

From Dev

Server responds with a non-JavaScript MIME type of ""

From Dev

Failed to load resource: the server responded with 404

From Dev

Github pages, bootstrap css remotely: Failed to load resource: the server responded with a status of 404 (Not Found)

From Dev

Failed to load resource: the server responded with a status of 406 (Not Acceptable) during javascript api call

From Dev

How to fix server responded with a MIME type of "text/plain"?

From Dev

Failed to load resource: the server responded with a status of 404 (Not Found). with ajax in caph

From Dev

Failed to load resource: the server responded with a status of 401 for mapbox api

From Dev

Getting an error message; Failed to load rescources: the server responded with a status of 500

From Dev

Failed to load resource; the server responded with a status of 404 - bundles/jquery - MVC

From Dev

Failed to load resource: the server responded with a status of 403 (Forbidden) MVC 5

From Java

Spring Boot Failed to load resource: the server responded with a status of 404

From Dev

Failed to load resource: the server responded with a status of 504 (Gateway Timeout)

From Dev

Angular 5: Failed to load resource: the server responded with a status of 404

From Dev

Failed to load resource: the server responded with a status of 400 (Bad Request) solution?

From Dev

Failed to load COMPASS resource: the server responded with a status of 404 (Not Found)

From Javascript

Failed to load resource: the server responded with a status of 404 (Not Found)

From Dev

Failed to load resource: the server responded with a status of 421 (Bad Request)

From Dev

Angular 2 - Failed to load resource: the server responded with a status of 404 (Not Found)

From Dev

Apache Cordova: Failed to load resource: the server responded with a status of 404 (Not Found)

From Dev

Laravel Chained Select Failed to load resource: the server responded with a status of 500

From Dev

Guacamole ,Failed to load resource: the server responded with a status of 403 (Forbidden)

From Dev

Failed to load resource: the server responded with a status of 404 (Not Found)

From Dev

node_modules: Failed to load resource: the server responded with a status of 404

Related Related

  1. 1

    GCP App Engine / Angular - Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html"

  2. 2

    Failed to load module script because of a disallowed MIME type

  3. 3

    ES6 modules in local files - The server responded with a non-JavaScript MIME type

  4. 4

    Deploying angular 8 application locally to IIS errors with 'The server responded with a non-Javascript MIME type of "text/html"?'

  5. 5

    Failed to load resource: the server responded with a status of 404 (Not Found) css

  6. 6

    Expected JS module, server responded with MIME?

  7. 7

    Server responds with a non-JavaScript MIME type of ""

  8. 8

    Failed to load resource: the server responded with 404

  9. 9

    Github pages, bootstrap css remotely: Failed to load resource: the server responded with a status of 404 (Not Found)

  10. 10

    Failed to load resource: the server responded with a status of 406 (Not Acceptable) during javascript api call

  11. 11

    How to fix server responded with a MIME type of "text/plain"?

  12. 12

    Failed to load resource: the server responded with a status of 404 (Not Found). with ajax in caph

  13. 13

    Failed to load resource: the server responded with a status of 401 for mapbox api

  14. 14

    Getting an error message; Failed to load rescources: the server responded with a status of 500

  15. 15

    Failed to load resource; the server responded with a status of 404 - bundles/jquery - MVC

  16. 16

    Failed to load resource: the server responded with a status of 403 (Forbidden) MVC 5

  17. 17

    Spring Boot Failed to load resource: the server responded with a status of 404

  18. 18

    Failed to load resource: the server responded with a status of 504 (Gateway Timeout)

  19. 19

    Angular 5: Failed to load resource: the server responded with a status of 404

  20. 20

    Failed to load resource: the server responded with a status of 400 (Bad Request) solution?

  21. 21

    Failed to load COMPASS resource: the server responded with a status of 404 (Not Found)

  22. 22

    Failed to load resource: the server responded with a status of 404 (Not Found)

  23. 23

    Failed to load resource: the server responded with a status of 421 (Bad Request)

  24. 24

    Angular 2 - Failed to load resource: the server responded with a status of 404 (Not Found)

  25. 25

    Apache Cordova: Failed to load resource: the server responded with a status of 404 (Not Found)

  26. 26

    Laravel Chained Select Failed to load resource: the server responded with a status of 500

  27. 27

    Guacamole ,Failed to load resource: the server responded with a status of 403 (Forbidden)

  28. 28

    Failed to load resource: the server responded with a status of 404 (Not Found)

  29. 29

    node_modules: Failed to load resource: the server responded with a status of 404

HotTag

Archive