Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tyscript compile issue after fresh install #2

Closed
terriann opened this issue Jun 21, 2017 · 1 comment
Closed

Tyscript compile issue after fresh install #2

terriann opened this issue Jun 21, 2017 · 1 comment
Assignees
Labels

Comments

@terriann
Copy link
Owner

terriann commented Jun 21, 2017

Running into errors compiling the typescript

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.

@terriann terriann added the bug label Jun 21, 2017
@terriann terriann self-assigned this Jun 21, 2017
@terriann
Copy link
Owner Author

It's only when you write out your problem that Google finally points you to the right SO 😒
https://stackoverflow.com/a/39603502/480603

Which also references microsoft/TypeScript#9184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant