esm.sh
esm.sh copied to clipboard
Argument of type 'TransformerFactory<SourceFile>' is not assignable to parameter of type 'TransformerFactory<SourceFile> | CustomTransformerFactory'
I'm not sure if this is an aleph.js or an esm.sh issue:
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/v40/[email protected]/lib/typescript.d.ts").TransformerFactory<import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").SourceFile>' is not assignable to type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").TransformerFactory<import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").SourceFile>'.
Types of parameters 'context' and 'context' are incompatible.
Type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").TransformationContext' is not assignable to type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").TransformationContext'.
The types of 'factory.createTypeParameterDeclaration(...).parent' are incompatible between these types.
Type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").DeclarationWithTypeParameterChildren | import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").InferTypeNode' is not assignable to type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").DeclarationWithTypeParameterChildren | import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").InferTypeNode'.
Type 'JSDocTemplateTag' is not assignable to type 'DeclarationWithTypeParameterChildren | InferTypeNode'.
Type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDocTemplateTag' is not assignable to type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDocTemplateTag'.
Types of property 'parent' are incompatible.
Type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDoc | import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDocTypeLiteral' is not assignable to type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDoc | import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDocTypeLiteral'.
Type 'JSDoc' is not assignable to type 'JSDoc | JSDocTypeLiteral'.
Type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDoc' is not assignable to type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").JSDoc'.
Types of property 'parent' are incompatible.
Type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").HasJSDoc' is not assignable to type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").HasJSDoc'.
Type 'ImportEqualsDeclaration' is not assignable to type 'HasJSDoc'.
Property 'isTypeOnly' is missing in type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").ImportEqualsDeclaration' but required in type 'import("https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts").ImportEqualsDeclaration'.
if (reactRefresh) transformers.before!.push(reactRefreshTS())
~~~~~~~~~~~~~~~~
at https://deno.land/x/[email protected]/tsc/compile.ts:28:49
'isTypeOnly' is declared here.
readonly isTypeOnly: boolean;
~~~~~~~~~~
at https://cdn.esm.sh/v40/[email protected]/lib/typescript.d.ts:1601:18
const { default: cmd } = await import(`./cli/${command}.ts`)
^
at async main (https://deno.land/x/[email protected]/cli.ts:163:30)
what's the source code that causes it? Also I saw you use Aleph, please check on 0.3-beta, I think the issue should be gone