I just bought a deno.js course from udemy. The installation was done perfectly but when running a script through deno. It shows an error 'cannot resolve module //filepath'. But when tweaking the path it works perfectly. Here is the code and terminal code below:-
//JAVASCRIPT
function a(){
console.log(1243);
}
a();
//TERMINAL
PS C:\Users\Intex> deno run deno.js
error: Cannot resolve module "file:///C:/Users/Intex/deno.js" //ERROR
PS C:\Users\Intex> deno run C:\Users\Intex\Desktop\deno.js //SUCCESSFUL
1243