Skip to content

Tyscript compile issue after fresh install #2

@terriann

Description

@terriann

Running into errors compiling the typescript

Terriann:master
$ npm i @types/node --global
/usr/local/lib
└── @types/node@8.0.1

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions