You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terriann:master
$ npm i @types/node --global
/usr/local/lib
└── @types/[email protected]
Terriann:master
$ tsc
node_modules/@types/requirejs/index.d.ts(416,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'Require'.
Some post said to remove the @types/node package from the dependencies. One post even suggested deleting the folder and a simple npm install just brought the problem back 😖
Even then I would try to compile my typescript and get this:
$ tsc
src/CsvToMarkdown.ts(103,12): error TS2304: Cannot find name 'module'.
src/CsvToMarkdown.ts(104,2): error TS2304: Cannot find name 'module'.
This happened after I moved directories around and ended up checking out the project again and running npm install so it may be a version based issue but that's just a hunch.
The text was updated successfully, but these errors were encountered:
Running into errors compiling the typescript
Some post said to remove the
@types/node
package from the dependencies. One post even suggested deleting the folder and a simplenpm install
just brought the problem back 😖Even then I would try to compile my typescript and get this:
This happened after I moved directories around and ended up checking out the project again and running
npm install
so it may be a version based issue but that's just a hunch.The text was updated successfully, but these errors were encountered: