By incompatible, TypeError: Argument of type 'TransformerFactory<SourceFile>'
See original GitHub issueusing Deno 1.6.3:
$ deno run -A https://deno.land/x/aleph@v0.2.26/cli.ts build
Error log:
error: Uncaught (in promise) TypeError: TS2345 [ERROR]: Argument of type 'TransformerFactory<SourceFile>' is not assignable to parameter of type 'TransformerFactory<SourceFile> | CustomTransformerFactory'.
Type 'import("https://cdn.esm.sh/v14/typescript@4.1.3/lib/typescript.d.ts").TransformerFactory<import("https://cdn.esm.sh/v14/typescript@4.1.3/lib/typescript.d.ts").SourceFile>' is not assignable to type 'import("https://cdn.esm.sh/v14/typescript@4.0.5/lib/typescript.d.ts").TransformerFactory<import("https://cdn.esm.sh/v14/typescript@4.0.5/lib/typescript.d.ts").SourceFile>'.
Types of parameters 'context' and 'context' are incompatible.
Type 'import("https://cdn.esm.sh/v14/typescript@4.0.5/lib/typescript.d.ts").TransformationContext' is not assignable to type 'import("https://cdn.esm.sh/v14/typescript@4.1.3/lib/typescript.d.ts").TransformationContext'.
Types of property 'isSubstitutionEnabled' are incompatible.
Type '(node: import("https://cdn.esm.sh/v14/typescript@4.0.5/lib/typescript.d.ts").Node) => boolean' is not assignable to type '(node: import("https://cdn.esm.sh/v14/typescript@4.1.3/lib/typescript.d.ts").Node) => boolean'.
Types of parameters 'node' and 'node' are incompatible.
Type 'import("https://cdn.esm.sh/v14/typescript@4.1.3/lib/typescript.d.ts").Node' is not assignable to type 'import("https://cdn.esm.sh/v14/typescript@4.0.5/lib/typescript.d.ts").Node'.
Types of property 'kind' are incompatible.
Type 'import("https://cdn.esm.sh/v14/typescript@4.1.3/lib/typescript.d.ts").SyntaxKind' is not assignable to type 'import("https://cdn.esm.sh/v14/typescript@4.0.5/lib/typescript.d.ts").SyntaxKind'.
Property 'IntrinsicKeyword' is missing in type 'import("https://cdn.esm.sh/v14/typescript@4.0.5/lib/typescript.d.ts").SyntaxKind'.
if (reactRefresh) transformers.before!.push(reactRefreshTS())
This is my project, https://deno.land/x/piny Is there a solution, such as explicitly specifying the version for CDN?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Typescript incompatible type error, but type is correct. Only ...
I'm trying to use a method decorator to coerce the type of an argument to a method. It seems like it should work....
Read more >JavaScript TypeError - X.prototype.y called on incompatible type
This JavaScript exception called on incompatible target (or object)” occurs if a function (on a given object), is called with a 'this' ...
Read more >When resolving incompatible signatures, skip callbacks with ...
map method has a union type with two incompatible types; one possibility is a string , number , string[] argument list returning a...
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 Free
Top 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
@shackra try 0.3.0-alpha.25 instead, i will release a beta version and update the docs this week
please use aleph v0.2.27 that should work