Typescript compilation error (Angular 8.2, Typescript 3.5)
See original GitHub issueI 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:
- Created 3 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top 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 >=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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks good! Thank you! I am using this import:
import interact from 'interactjs';
I’ve released
v1.9.18
which hopefully resolves this issue.