Error on using TypeScript

Error on using TypeScript

VolkhardVVolkhardV Posts: 15Questions: 4Answers: 0

Hello,
i want to use Editor 2.0.5 with Typescript in my .net 5.0 ASP.Net-Application.
currently i get the errors on the file types.d.ts while compiling:

TS2304 (TS) Cannot find name 'classNames'.
TS2304 (TS) Cannot find name 'modelSettings'.
TS2304 (TS) Cannot find name 'publicApi'.

can anyone help?

best regards

Volkhard

Answers

  • allanallan Posts: 54,921Questions: 1Answers: 8,611 Site admin

    Hi Volkhard,

    Have you installed this package? It should install all the required type information in the types directory.

    Allan

  • VolkhardVVolkhardV Posts: 15Questions: 4Answers: 0

    Hello Allan,
    the downloaded editor-directory contains an js/types.d.ts file (where this error comes from).
    after install the editor-package i copied the tyoes-directory to the downloaded editor-directory and deleted the supplied js/types.d.ts file.

    this works - is this correct?

    best regards

    Volkhard

  • allanallan Posts: 54,921Questions: 1Answers: 8,611 Site admin

    Hi Volkhard,

    Yes, there shouldn't be a js/types.d.ts file. I'll get that removed.

    Regards,
    Allan

Sign In or Register to comment.