I am trying to run/debug an HTML + CSS file via Localhost in Visual Studio Code, but all I get in Chrome is:
localhost refused to connect. ERR_CONNECTION_REFUSED
and in VSC is says
crbug/1173575, non-JS module files deprecated.
I noticed that my HTML file was able to run, but when I tried debugging the CSS is when the problem started.
Here's my launch.json file:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
I DID LOOK AT THIS ARTICLE AND ALL THE ARTICLES THAT ARE PART OF IT. Unfortunately, none of them worked.
When I tried running this in Replit with it's webview feature it worked perfectly fine.