robertIsaac
robertIsaac
> This is expected behavior. You can read more about the error prone nature of default exports and CommonJS libraries here: https://esbuild.github.io/content-types/#default-interop The `jspdf-autotable` package does have an ESM variant...
> This is expected behavior. You can read more about the error prone nature of default exports and CommonJS libraries here: https://esbuild.github.io/content-types/#default-interop The `jspdf-autotable` package does have an ESM variant...
it doesn't work still ``` - Building...X [ERROR] TS2307: Cannot find module 'jspdf-autotable/es' or its corresponding type declarations. [plugin angular-compiler] packages/web/src/app/widgets/export/builders/pdf-file-builder.ts:73:34: 73 │ this.autoTable = await import('jspdf-autotable/es').then( ```
@alan-agius4 @clydin I have updated the repo https://github.com/robertIsaac/jspdf-autotable-error-reprod to include the latest version of `jspdf-autotable` and trying to use `jspdf-autotable/es` if I'm doing something wrong please let me know
I'm sorry I forget to push
> For now you could explicitly import `jspdf-autotable/es` for the ESM version. Unfortunately it throw an error https://github.com/robertIsaac/jspdf-autotable-error-reprod Here is example You can read the discussion here https://github.com/angular/angular-cli/issues/26888#issuecomment-1906034537
Yeah I need the dynamic import so I don't load the package (along others) unless the user started exporting, this helps a lot with the initial build size
> Have you tried the TS config solution? No it will probably cause even more problems but I will try it later today or tomorrow when I have time
@jamesdaniels @davideast can you take a look at the PR?
@jessicajaniuk should I take this one?