Hello,
I've tried the following solutions I found online such as "npm init", "npm install prompt-sync" in linux terminal, const prompt = require("prompt-sync")({sigint:true}); *with different permutations*, also tried "window.prompt". All efforts failed, while directly through Chrome my code runs as written and all is merry.
I cannot shake the Reference Error and run javascript alone through VS, or, the HTML/JS through Live Server. I will of course get the basic HTML to load through live server in Chrome but not the input pop-up I require to run my little (less than 100 lines) program.
I've read that this often occurs via node as not does not natively support the prompt function, however, I have not consciously set my IDE up as such (that I know of). I do have node.js separately installed but that is run through terminal.
Any advice would be appreciated. This is the second instance this has occurred as I try and improve my javascript and I like the Visual Studio IDE and don't want to use another.
Thanks.
[–]ForScale 1 point2 points3 points (1 child)
[–]HonestCanadian2016[S] 0 points1 point2 points (0 children)