I am currently experimenting with some code that I plan to integrate into a base website already functioning in Visual Studio Code. Although I found a successful example similar to what I want to achieve, I decided to test it in VSC (Visual Studio Code) by copying and pasting all the files into a new workspace. However, when I tried testing it using the Live Server Extension, all I got was a blank screen.
Thinking there might be an issue where the Live Server Extension could not access or read a file, I attempted to recreate it using nodejs. This was my first time working with nodejs, but unfortunately, it also didn't work. I encountered numerous errors that I researched, attempted to fix, failed, then repeated the process without success. So, I'd like to ask if there is a simpler method to transfer the code from CodeSandbox to VSC and have it function properly with the Live Server Extension.
Here is the code snippet from CodeSandbox: https://codesandbox.io/s/naughty-wiles-lil5d?file=/index.html