denosaurs / wait

🌀 Minimal terminal spinner
https://deno.land/x/wait
MIT License
60 stars 5 forks source link

Problem after running an executable compiled file: `error: TypeError: mod5.stripAnsi is not a function` #7

Closed xeho91 closed 1 year ago

xeho91 commented 3 years ago

Hi!

Thanks for this great utility. It is neat to use.

The problem

After running an executable file, straight after using a command deno compile. I am getting an error:

error: TypeError: mod5.stripAnsi is not a function
    at Spinner.updateLines (file://$deno$/bundle.js:8079:33)
    at Spinner.set text (file://$deno$/bundle.js:8022:14)
    at new Spinner (file://$deno$/bundle.js:7984:19)
    at wait (file://$deno$/bundle.js:7957:12)
    at task (file://$deno$/bundle.js:8129:21)
    at loadColorsConfig (file://$deno$/bundle.js:10458:11)
    at file://$deno$/bundle.js:10482:7

I am lost on how to solve it by myself. Therefore I ask for guidance. There was no problem or any error while using the command deno run ....

Just in case I have disabled the snippet where I am using your spinner, it works (my own CLI program), so I can rule out that the problem isn't with my code.

Additional info:

eliassjogreen commented 3 years ago

This is most likely a problem with the SWC bundler of deno and does not have anything to do with wait. I will try updating our deps in case thats the problem but if not you will simply have to wait. Look for issues in the main deno repo which may be related (keywords could be: swc, bundle, compile, compiling dependencies)