question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript compilation error (Angular 8.2, Typescript 3.5)

See original GitHub issue

I am using interactjs 1.9.17 in an angular project (angular 8.2 and typescript 3.5).

Sadly the project does not compile due to Typescript errors related to interactjs:

ERROR in ../../node_modules/@interactjs/types/index.d.ts:679:17 - error TS1005: '=' expected.

679     import type { Options } from "@interactjs/core/defaultOptions";
                    ~
../../node_modules/@interactjs/types/index.d.ts:679:34 - error TS1005: ';' expected.

679     import type { Options } from "@interactjs/core/defaultOptions";

The import of interactjs looks like this: import * as interact from 'interactjs';

Previously I was using “interactjs”: “1.3.x” and there were no issues.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
spieralacommented, May 28, 2020

Looks good! Thank you! I am using this import:

import interact from 'interactjs';

0reactions
tayecommented, May 25, 2020

I’ve released v1.9.18 which hopefully resolves this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 ...
ERROR in The Angular Compiler requires TypeScript >=3.6.4 and <3.8.0 but 3.8.3 was found instead. To fix it, you should install the ...
Read more >
The Angular Compiler requires TypeScript 3 4 0 and 3 5 0 but ...
I'm getting the following error when I do npm run build: The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.3 was found...
Read more >
ERROR in The Angular Compiler requires TypeScript &gt;=3.4 ...
ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.6.0 but 3.8.3 was found instead. hi am geting this error i try
Read more >
@angular/compiler-cli - npm
@angular/compiler-cli. TypeScript icon, indicating that this package has built-in type declarations. 15.0.4 • Public • Published 11 days ago.
Read more >
What's new After Angular 8 - Medium
Typescript. Typescript 3.5.x is required with 8.2.0 release. ... It will throw a compilation error if any other data type is used.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found