The error Crbug/1173575, non-JS module files deprecated occurs basically when you are running the projects in VSCode with launch.json
for debugging the application.
In this tutorial, we will check what is Crbug/1173575, non-JS module files deprecated and how to fix this error with examples.
How to fix Crbug/1173575, non-JS module files deprecated.
The Crbug/1173575, non-JS module files deprecated is a very generic error and it occurs for many reasons and there are different solutions.
Solution 1 – Delete launch.json file in VSCode
The most common reason is when you try to debug the application using the wrong configuration in the VScode launch.json
this error would occur.
The best way is to delete the launch.json
file and run the application and see if this fixes the issue. In most cases, this would solve the error.
Solution 2 – Check the port and HTTPS configuration in launch.json
There are times that the port you are using may not be opened or it might be used by another application and when you try to run the application you will get this error.
Configure the same port in launch.json
for debugging purposes, providing a different port also will lead to this error.
Also, ensure that you are using the correct protocol and the same is configured in the launch.json
. Sometimes the application is configured to run using HTTP but you might be running using HTTPS.
Try checking your URL, routes, and settings and ensure the correct protocol is used everywhere.
Solution 3 – Run the application in VsCode
Instead of launching your application using the option “Launch Chrome against localhost“, rather set your application name for launching.
Conclusion
The error Crbug/1173575, non-JS module files deprecated occurs mainly if you are trying to debug the application in VSCode and Chrome browser. There are various reasons why you get the error.
The issue can be resolved by deleting the launch.json
file in the VSCode and also ensuring the port is opened and configured properly in the launch.json
and the right protocol(http/https) is used to browse the application.
2 comments
Hi, Srinivas. I’m running an application with vuejs 3 and yarn but I didn’t find a file “launch.json” in my app directory (only a yarnlock.json). So I tried run the http:// localhost/8080 in Firefox first and the application automatically runs on the Chrome after.
launch.json usually comes when we try to debug the code via VS Code. In fact the launch.json will be created by VS Code and it holds the configuration details on how to launch and debug the application. Many time the issue can be solved by re-compiling or rebuilding the entire code and restarting the browser