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

Blueprint is incompatible with "@types/node" #1942

Closed
mattjenny opened this issue Dec 19, 2017 · 1 comment
Closed

Blueprint is incompatible with "@types/node" #1942

mattjenny opened this issue Dec 19, 2017 · 1 comment

Comments

@mattjenny
Copy link

Bug report

  • Package version(s): 1.35.0
  • Browser and OS versions: macOS Sierra

Steps to reproduce

  1. Add @blueprintjs/core and @types/node to the package.json on a typescript project.
  2. Run tsc on the project.

Note that this project does not contain any components that explicitly extend AbstractComponent, nor does it call setTimeout in the source code. The bug is happening in the Blueprint module.

Actual behavior

Typescript compilation fails with the following error:

node_modules/@blueprintjs/core/src/common/abstractComponent.ts(46,30): error TS2345: Argument of type 'Timer' is not assignable to parameter of type 'number'.

Expected behavior

Compiles without errors.

@mattjenny
Copy link
Author

Appears to have been fixed in #1741; I had an old version floating around in my node_modules.

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

No branches or pull requests

1 participant