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

O.MeeKoh

I am trying to deploy angular 8 application that is hosted inside my ASP.NET Core application in wwwroot folder. Prior to upgrade to angular 8, I was able to accomplish this with the following configuration:

  1. Configure the web.config file of the ASP.NET Core web api to use ASPNETCORE_ENVIORNMENT=DEVELOPMENT
  2. Configure the angular index.html file base href to point to /virtualApplicationName/

When I view the network tab, all of the static files are downloading fine without issues:

enter image description here

But I keep seeing this: enter image description here

Any ideas what else I can try?

Thanks

Tony Ngo

Try to change the property "target" in the file "tsconfig.json" to "es5" and you should be good to go

"compilerOptions": {
        "target": "es5",
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

the server responded with a status of 403 (Forbidden) angular

From Javascript

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

From Javascript

When to use the JavaScript MIME type application/javascript instead of text/javascript?

From Javascript

Debug message "Resource interpreted as other but transferred with MIME type application/javascript"

From Dev

Deploying an Angular app in the IIS

From Dev

ASP MVC Resource interpreted as Stylesheet but transferred with MIME type application/javascript

From Dev

Angular deploying application server needed?

From Dev

Issue deploying ASP.net angular application to IIS

From Dev

Server Error in '/test' Application while deploying Angular 2+ app on IIS

From Dev

MIME type checking failure when deploying the React App on the server

From Dev

Stylesheet not loaded because of MIME-type Angular application

From Dev

MIME type issue in Angular

From Dev

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

From Dev

Nginx was blocked because of a disallowed MIME type (“text/html”). Angular 8

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

Deploying MVC4 application to Windows Server 2003 and IIS 7 (error 0x8007000d)

From Dev

Images not loading and css not referenced after deploying MVC4 application to IIS 8

From Dev

When hosting asp.net application on Windows server 2012 using IIS 8 no CSS, Javascript or Jquery works

From Dev

python deploying application on server

From Dev

Errors during deploying rails application to server while using bundle install

From Dev

css and js files not found(server responded with a status of 404) while browsing application on iis7

From Dev

Why can't users authenticate after deploying locally the ASP.NET 4.6 application to the IIS 10 server?

From Dev

Deploying signalR with ARR in IIS (Application Request Routing )

From Dev

IIS Server MIME Error in ASP.NET MVC Application

From Dev

How to deploy angular 8 application in local IIS server

From Dev

Deploying Angular Application doesn't seem to do anything on my server

From Dev

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

From Dev

Expected JS module, server responded with MIME?

From Dev

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

Related Related

  1. 1

    the server responded with a status of 403 (Forbidden) angular

  2. 2

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

  3. 3

    When to use the JavaScript MIME type application/javascript instead of text/javascript?

  4. 4

    Debug message "Resource interpreted as other but transferred with MIME type application/javascript"

  5. 5

    Deploying an Angular app in the IIS

  6. 6

    ASP MVC Resource interpreted as Stylesheet but transferred with MIME type application/javascript

  7. 7

    Angular deploying application server needed?

  8. 8

    Issue deploying ASP.net angular application to IIS

  9. 9

    Server Error in '/test' Application while deploying Angular 2+ app on IIS

  10. 10

    MIME type checking failure when deploying the React App on the server

  11. 11

    Stylesheet not loaded because of MIME-type Angular application

  12. 12

    MIME type issue in Angular

  13. 13

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

  14. 14

    Nginx was blocked because of a disallowed MIME type (“text/html”). Angular 8

  15. 15

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

  16. 16

    Deploying MVC4 application to Windows Server 2003 and IIS 7 (error 0x8007000d)

  17. 17

    Images not loading and css not referenced after deploying MVC4 application to IIS 8

  18. 18

    When hosting asp.net application on Windows server 2012 using IIS 8 no CSS, Javascript or Jquery works

  19. 19

    python deploying application on server

  20. 20

    Errors during deploying rails application to server while using bundle install

  21. 21

    css and js files not found(server responded with a status of 404) while browsing application on iis7

  22. 22

    Why can't users authenticate after deploying locally the ASP.NET 4.6 application to the IIS 10 server?

  23. 23

    Deploying signalR with ARR in IIS (Application Request Routing )

  24. 24

    IIS Server MIME Error in ASP.NET MVC Application

  25. 25

    How to deploy angular 8 application in local IIS server

  26. 26

    Deploying Angular Application doesn't seem to do anything on my server

  27. 27

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

  28. 28

    Expected JS module, server responded with MIME?

  29. 29

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

HotTag

Archive