'crbug/1173575, non-JS module files deprecated

I was writing up some basic HTML code and some CSS too. I ran the CSS by mistake rather than running the HTML file and suddenly I got the error showing localhost:8080 and the debug console started showing me this too.

crbug/1173575, non-JS module files deprecated.



Solution 1:[1]

You didn't mention it but if a .vscode folder popped up with a launch.json file then I think I would know the solution. I'm not sure if this would work for everyone, but I just deleted that .vscode folder and ran the html file again and it worked.

Solution 2:[2]

Today I ran into the same problem and was looking for a solution. I even followed a lot of solutions given here but with no success. So I've done the silliest thing (I don't know why I got up to this solution): my PHP Version was 8.0.12 and I switched it to 7.4.25 and the next minute everything seemed to start working at a glance.

I don't know if this solution applies to anyone that has this type of error, but it worked for me.

Solution 3:[3]

If you are using the Windows Subsystem for Linux (WSL) on your Windows to run a web server, then this might help

  1. Open Run dialog by pressing Windows key + R on your keyboard and type services.msc and press Enter

enter image description here

  1. In the services window, search for the service named LxssManager select Restart from the drop-down menu.

LxssManager

  1. Restart your WSL terminal and it should be working now it was caused by an issue with LxssManager service.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yoyo
Solution 2 Johny T Koshy
Solution 3 Crystal Killer