-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Type error in inbuilt @types/node/index.d.ts #19293
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
Comments
You probably have two declarations of this variable somewhere, could you look for the other one? Find-all-references should help. |
Hi Andy, thanks for the quick reply! The code in I started using Typescript yesterday - how to I match the |
|
I have:
In my |
If there's already a |
Here's a simple two line TS file:
Compiling it:
There is no global 'process' - if I remove the Maybe PS: not using TC39 modules, just commonJS since that's what 99% of npm uses. |
|
@Andy-MS Ah my bad, it's Are you saying I should replace CommonJS imports using |
Yes, change |
OK thanks. Sorry for wasting your time to what amounted to ' |
Is there an equivalent of the node 'require everything at once'?
? 🤔 |
Just use multiple |
TypeScript Version: 2.6.0-dev.20171018
Code
Expected behavior:
Inbuilt types work.
Actual behavior:
A user here is having the same issue, however TS folk asked this to be filed seperately: #9725 (comment)
The text was updated successfully, but these errors were encountered: