-
Notifications
You must be signed in to change notification settings - Fork 62
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
ERROR:Type 'typeof TransportStream' is not a constructor function type. Version: typescript 3.5.3, #82
Comments
Any update about this? |
I think the issue is with the import. Changing it to: |
does anyone use typescript and this import works? import winstonGraylog2 from 'winston-graylog2'; I'm suspecting that language level or language feature may be an issue. I'm failing with such tsconfig: "target": "es2016",
// Enables experimental support for ES7 decorators.
"experimentalDecorators": true,
"esModuleInterop": true, |
possible fix in #76 |
I can confirm that I can import this say okay and import * as WinstonGraylog2 from 'winston-graylog2'; |
Hi @glensc Tried this way but then the error exists Type 'typeof TransportStream' is not a constructor function type.ts(2507) |
Do you have |
@glensc Yes it's enabled in my tsconfig file |
Sorry for the late reply guys. I no longer use this library myself, so I didn't really have time to check the issue. |
Type 'typeof TransportStream' is not a constructor function type.
The text was updated successfully, but these errors were encountered: