-
Notifications
You must be signed in to change notification settings - Fork 41
Some runs fail: error: Expected a JavaScript or TypeScript module #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi there! Thanks for reporting this. Could you try upgrading your version of the postprocessing library to So here: https://github.com/weirdyang/causeway-image/blob/main/post-process.js#L4
And let us know if the error still happens for you? |
Happening to me as well! Also on https://github.com/dalanmiller/electricity/blob/master/postprocess.ts#L71 https://github.com/dalanmiller/electricity/runs/4999257723 |
I did some digging here - looks like these errors are very intermittent and fail while downloading different modules required for the xlsx import from jspm. For example, this Action fails on https://jspm.dev/npm:@jspm/core@2/nodelibs/process but this Action fails on https://jspm.dev/npm:@jspm/core@2/nodelibs/buffer One other thing I noticed is that the errors appear to start ~Jan 10th, looking through the history on your repo, @dalanmiller. Looks like there was an xlsx release around the same time: I pinned the xlsx import to v0.17.4 I'm not positive that this will fix the error, but it might! Try bumping your flat import to 0.0.14, and we can revisit if the errors are still showing up. |
Thanks for investigating @Wattenberger - I bumped to Has anything changed to the Deno runtime behind the scenes? https://github.com/dalanmiller/electricity/actions/runs/1775755781 Edit: But oddly, it's intermittent, this recent run succeeded: |
Thanks, will try and report back. Fwiw I noticed the examples are also failing intermittently https://github.com/githubocto/flat-demo-bitcoin-price/actions/runs/1778265780 |
This might have been because we hadn't updated the |
Following-up @dalanmiller it doesn't seem like your action has failed in a while, is that correct ?https://github.com/dalanmiller/electricity/actions? |
Also will leave a comment to follow this issue which Amelia found: SheetJS/sheetjs#2217 |
Just bumped to 14, fwiw didn’t get any errors the past few days with 13 |
As referenced here: githubocto/flat#67
I had the some error all of a sudden, looks like a bump to |
Thanks for the reports y'all! Looks like runs have stopped intermittently failing 🙌 Please let us know if it starts happening again, and hopefully we can stop using jsnpm for Sheetjs soon |
I’m running a GitHub action to download images from an api every hour, I used the nasa image example as the template. However sometimes the run fails with this error, what could be the issue?
here’s the failed run:
https://github.com/weirdyang/causeway-image/actions/runs/1737018565
Here’s my post process script
https://github.com/weirdyang/causeway-image/blob/main/post-process.js
The text was updated successfully, but these errors were encountered: