Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

App Engine mime type issue for angular app

Hi,

I have already deployed my angular application on Google App Engine and it is working fine. Now have some updates and deploying new release on app engine using "gcloud app deploy" command. But after deployment when i browse my application in browser, it showsing below error in console. I tried the same code that is already deployed same error for my previous code after deployment.

Error:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

 
Here is my app.yaml
runtime: nodejs16 
service: wm-dev

env_variables:
  NODE_ENV: "development"

handlers:
- url: /(.*\.(gif|png|html|jpg|less|json|woff|woff2|ttf|eot|scss|css|js|ico|svg)(|\.map))$
  static_files: dist/white-mountains/\1
  upload: dist/white-mountains/(.*)
- url: /(.*)
  static_files: dist/white-mountains/index.html
  upload: dist/white-mountains/index.html
0 0 707
0 REPLIES 0