Hello everyone,
I’m having an issue with vs code editor. I did google it and tried many solutions but it’s not solved.
When I run an HTML file, it goes smoothly, once I add a CSS file, the editor shows error messages. I think it’s server-side problem, I installed an extension called “Live Server”.
Exception has occurred: ReferenceError: closeDescriptionPopup is not defined
at HTMLAnchorElement.eval (eval at B (chrome-error://chromewebdata/:2:404), <anonymous>:1:41)
at y (chrome-error://chromewebdata/:7147:2735)
at F.b (chrome-error://chromewebdata/:7155:108)
at F.g (chrome-error://chromewebdata/:7153:462)
at window.jstProcess (chrome-error://chromewebdata/:7156:847)
at chrome-error://chromewebdata/:7157:60
I found this same issue reported on Github as a Bug but they closed it and asked the poster to go to stack overflow.
I read on stack overflow the solution suggested and I tried it but it didn’t solve anything.
I’m using VS code on Windows 10
The thing is, once I hit F5, a file get created by VS code and asks me to add configuration, the file name is “launch.json” and this is the code inside it:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
Some solutions suggest changing the localhost port from 8080 to 5500
I tried it but it didn’t fix the issue.
Also, the WebRoot to change it and I did that too without fixing the issue at all.
Part of the solution suggested in stack-overflow post was to use the terminal and type:
install npm
start npm
I read it needs Node.JS to be installed, I looked and I don’t have Node.JS installed, I tried to install but the setup file doesn’t launch every time I click it, nothing happens.
Thank you all in advance.
Let me know if any further details are required or needed.