You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6 | "use strict";
7 |
8 | //
9 | if (entry.instantiate)
10 | return entry.instantiate;
11 | var instantiatePromise = (async () => {
^
TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun
Bun v1.3.11 (macOS arm64)
To Reproduce
Steps to reproduce the behavior:
Run any variant after update via npx cc-mirror
Expected Behavior
The app should open...
Screenshots
If applicable, add screenshots to help explain your problem.
this is not an issue of this tool, it is related to tweakcc and Bun and cc itself I guess.
for the mean time use version 2.1.78. This is the closest version to the latest that I found to be working.
6 |"use strict";
7 |
8 | //
9 |if (entry.instantiate)
10 |return entry.instantiate;
11 | var instantiatePromise = (async () => {
^
TypeError: Expected CommonJS module to have a functionwrapper. If you weren't messing around with Bun's internals, this is a bug in Bun
Bun v1.3.11 (macOS arm64)
Thanks to @ymuuuu, running this command got me back up and running:
Thanks everyone for the reports and workarounds here. I’m keeping this as the canonical issue for recent native-runtime/tweakcc breakage. Fixes and hardening are prepared for the next 2.2.0 release, including validation/retry behavior and safer fallback when patching fails; I’ll leave this open until the release is out and current variants have had a chance to update.
Activity
matteocrippa commentedon Mar 29, 2026
Seems related to Piebald-AI/tweakcc#624
ymuuuu commentedon Mar 30, 2026
this is not an issue of this tool, it is related to tweakcc and Bun and cc itself I guess.
for the mean time use version 2.1.78. This is the closest version to the latest that I found to be working.
jhult commentedon Apr 5, 2026
Thanks to @ymuuuu, running this command got me back up and running:
bunx cc-mirror update glm --claude-version 2.1.78ducban commentedon Apr 8, 2026
cc-mirror update zclaude --claude-version latestClaude version 2.1.96 works fine with cc-mirror from my end. Let's give it a try.
1WorldCapture commentedon Apr 12, 2026
I fixed this issue with
--no-tweak, so you could:npx cc-mirror quick --provider mirror --name <name> --no-tweakor
npx cc-mirror update <name> --no-tweakThe only cost is no tweak, but with running correctly and latest claude version
whit3rabbit commentedon Apr 26, 2026
My PR addresses this: #53
pil1 commentedon Apr 27, 2026
Your PR looks clean and proper - but this project might be dead, sadly. Which is a huge shame, because I use it every day.
numman-ali commentedon May 29, 2026
Thanks everyone for the reports and workarounds here. I’m keeping this as the canonical issue for recent native-runtime/tweakcc breakage. Fixes and hardening are prepared for the next 2.2.0 release, including validation/retry behavior and safer fallback when patching fails; I’ll leave this open until the release is out and current variants have had a chance to update.
pil1 commentedon May 30, 2026
So glad to hear this isn't dead. One of the most useful utilities I use every day.