-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
SyntaxError: Unexpected token 'with' when running repomix #274
Comments
Same issue I reported a few days here #206 (comment) Ping @yamadashy |
Thank you for your report! Sorry for the delay in confirming this. |
It seems that the error might be caused by the recent update of import spinners from './spinners.json' with {type: 'json'}; https://github.com/sindresorhus/cli-spinners/blob/main/index.js#L1 PR I suspect this change is causing compatibility issues. Unfortunately, I won't be able to address this today, but I will look into it tomorrow. Apologies for the inconvenience. |
Hi @kkailaasa and @gaby, I've just released v0.2.17 which includes a fix for the Could you please try updating to v0.2.17 and let me know if this resolves the issue? npm i -g repomix@latest
# or
npx repomix@latest While the original report mentioned Node.js 20.x, this fix might help as it improves compatibility across Node.js versions. I've also expanded Node.js support to include all versions from 18.0.0 onwards. Let me know if you still encounter any issues. Thanks for reporting this problem! 🙏 |
I can confirm this issue is resolved, thank you @yamadashy |
@kkailaasa @gaby |
@yamadashy Thank you for the awesome tool! 💪 |
When running repomix, the command fails with a SyntaxError related to the with keyword. This suggests a compatibility issue with newer Node.js versions or ESM modules.
Steps to Reproduce:
npx repomix
Error Output:
The text was updated successfully, but these errors were encountered: