Skip to content

Does not compile without required typings #1

@mebibou

Description

@mebibou

When using in my unit test I have the following errros:

31 07 2018 13:57:04.950:ERROR [compiler.karma-typescript]: node_modules/angularjs-testbed/types/ComponentFixture.d.ts(17,26): error TS2304: Cannot find name 'JQLite'.

31 07 2018 13:57:04.950:ERROR [compiler.karma-typescript]: node_modules/angularjs-testbed/types/DebugElement.d.ts(1,23): error TS2688: Cannot find type definition file for 'jquery'.

31 07 2018 13:57:04.950:ERROR [compiler.karma-typescript]: node_modules/angularjs-testbed/types/DebugElement.d.ts(3,27): error TS2702: 'JQuery' only refers to a type, but is being used as a namespace here.

31 07 2018 13:57:04.951:ERROR [compiler.karma-typescript]: node_modules/angularjs-testbed/types/DebugElement.d.ts(5,39): error TS2304: Cannot find name 'JQLite'.

31 07 2018 13:57:04.951:ERROR [compiler.karma-typescript]: node_modules/angularjs-testbed/types/DebugElement.d.ts(7,21): error TS2702: 'JQuery' only refers to a type, but is being used as a namespace here.

Maybe the required @types should be added as dependencies or at least peerDependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions