How to Fix launch.json Error in VSCode | launch.json Error Visual Studio Code (2023)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so when you try to run a website HTML CS JavaScript website you might get a launch. Json error so let's see how we can fix that error quickly now you have this s here sorry we have this Javascript file here CSS file here and index your HTML file here and when we try to run this let's choose Chrome now this launch. Json file is created and nothing happens and you get a launch. Json error so let's see how we can fix this this first we don't need this can close this and this vs code folder is just a configuration that is used for JavaScript uh settings like this but we don't need this we can just delete this so what is happening is it is directly trying to run JavaScript independent of our HTML so how we run this is we include this JavaScript as you can see here I've included this JavaScript here and I've included this CSS here and when we run this index. HTML file in a browser that browser will use this script.js and html. CSS so that error is occurring because our Visual Studio code is directly trying to run this instead of the browser so what we can do is don't run it using this script.js so when you are try clicking on run and Run start debugging don't have this file open have our index. HTML open so when your index. HTML is open and you click on Run start debugging and then it'll open in browser and everything will work so if you have any questions let me know in the comments below
Info
Channel: The Code City
Views: 20,488
Rating: undefined out of 5
Keywords: how to fix launch.json, how to fix launch.json in vscode, vscode launch.json error, launch.json error in visual studio code, how to fix launch.json error in visual studio code
Id: vlIN27js3UY
Channel Id: undefined
Length: 1min 39sec (99 seconds)
Published: Sun Dec 03 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.