Skip to content

Type error in prism #29

@terryjiang2020

Description

@terryjiang2020

After installing this and prism.js to my angular project, I got an error when I tried to compile it in aot mode:

`../node_modules/@angular-package/prism/typings/index.d.ts:1:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'Prism' must be of type 'typeof import("D:/projectname/node_modules/@types/prismjs/index")', but here has type 'any'.

1 declare var Prism;
~~~~~`

Wonder if it is a bug, any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions