XToolset icon indicating copy to clipboard operation
XToolset copied to clipboard

TypeError: range_1.default is not a constructor

Open Jedliu opened this issue 2 years ago • 5 comments

Hi @Siemienik , I'm trying to include this in the nx project and do the tests to add image insertion. It's using Jest for testing and there is an error

TypeError: range_1.default is not a constructor

in xlsx-renderer/src/Scope.ts so the tests failed.

I tried to include the Range def in index.d.ts of exceljs package but it didn't work.

Do you have a clue how to fix this? Thank you very much!

图片

Jedliu avatar Dec 02 '22 14:12 Jedliu

Are you able to link the repo?

Siemienik avatar Dec 02 '22 17:12 Siemienik

Hi @Siemienik, thanks for your fast reply. I will create a repo for your reference soon.

Jedliu avatar Dec 05 '22 10:12 Jedliu

I solved this by forking exceljs and do a patch then install from this patch. Thanks for your attention. Here is a link to the patch release

PS: exceljs hasn't been updated for quite a long time.

Jedliu avatar Dec 07 '22 13:12 Jedliu

@Jedliu, Thanks for info.

Recently I started to organize Merge Fest for my projects, including exceljs. The MergeFests are organized and announced on our Discord: https://discord.gg/siema . Today I will do next one at 8pm CEST. Join us if you would like. Especially if have you got some propositions which PRs are more important than rest, just send me a link on #exceljs channel.

As I can't release exceljs, I started to release it as @siema-team/spreadsheets, GH: https://github.com/SiemaTeam/spreadsheets

Would you mind send me a link to PR with your fixation? or open new PR if doesn't exist?

Regards

Siemienik avatar Apr 24 '23 15:04 Siemienik

Hi, Siemienik. Thanks for getting in touch with me. I will look into this when I have spare time.

Jedliu avatar Apr 25 '23 00:04 Jedliu