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

Argument of type 'typeof DirHandler' is not assignable to parameter of type 'new () => HandlerInstance'. #3

Closed
maiermic opened this issue Aug 11, 2016 · 1 comment

Comments

@maiermic
Copy link

I tried to run the example npm test, but I get an error

test/dir-example.ts(4,26): error TS2307: Cannot find module 'cxml/test/xmlns/dir-example'.
test/dir-example.ts(8,21): error TS2345: Argument of type 'typeof DirHandler' is not assignable to parameter of type 'new () => HandlerInstance'.
  Type 'DirHandler' is not assignable to type 'HandlerInstance'.
    Property '_exists' is missing in type 'DirHandler'.
test/dir-example.ts(13,34): error TS2339: Property 'name' does not exist on type 'DirHandler'.
test/dir-example.ts(19,32): error TS2339: Property 'name' does not exist on type 'DirHandler'.
npm ERR! Test failed.  See above for more details.
@maiermic
Copy link
Author

This bug seems to be Windows specific. npm link cxml seams not to work. However, I can compile and run dir-example.ts by using

import * as example from './xmlns/dir-example';

instead of

import * as example from 'cxml/test/xmlns/dir-example';

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