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.

By incompatible, TypeError: Argument of type 'TransformerFactory<SourceFile>'

See original GitHub issue

using 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:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ijecommented, Apr 8, 2021

@shackra try 0.3.0-alpha.25 instead, i will release a beta version and update the docs this week

1reaction
ijecommented, Jan 8, 2021

please use aleph v0.2.27 that should work

Read more comments on GitHub >

github_iconTop 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 >

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