and i'm getting this errors:
1st: import-prefix-missing: Relative import path "fs" not prefixed with / or ./ or ../
on the first line(import)
2nd: 2503: Cannot find namespace 'NodeJS'.
at fs.readFile arrow function err parameter
3rd: 2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try npm i --save-dev @types/node.
at fs.readFIle arrow function 'texto' parameter
i already installed @types/node and this code transpiles and runs correctly. how to fix all theses warnings/erros?
I wrote this piece of code:
and i'm getting this errors: 1st: import-prefix-missing: Relative import path "fs" not prefixed with / or ./ or ../ on the first line(import) 2nd: 2503: Cannot find namespace 'NodeJS'. at fs.readFile arrow function err parameter 3rd: 2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try
npm i --save-dev @types/node
. at fs.readFIle arrow function 'texto' parameteri already installed @types/node and this code transpiles and runs correctly. how to fix all theses warnings/erros?