XielQs / httptoolkit-pro-patcher

Basic program that patches pro version to HTTP Toolkit
MIT License
29 stars 10 forks source link

TypeError: email.replaceAll is not a function #5

Closed germcosti closed 1 day ago

germcosti commented 4 days ago

I'm getting this error when running the patcher

file:///C:/httptoolkit-pro-patcher/index.js:103 .replace('const APP_URL =', // ------- Injected by HTTP Toolkit Patcher -------\nconst email = \${email.replaceAll('', '\\')}`\n${patch}\n// ------- End patched content -------\nconst APP_URL =`) ^

TypeError: email.replaceAll is not a function at patchApp (file:///C:/httptoolkit-pro-patcher/index.js:103:111) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async file:///C:/httptoolkit-pro-patcher/index.js:130:5

XielQs commented 3 days ago

clone repo (or use git pull you know) and try again, if that didn't work then provide a screenshot of error please ❤️

germcosti commented 2 days ago

It worked but now httptoolkit won't open. I try to run it and nothing happens

XielQs commented 2 days ago

Uh, can you send me a screenshot of your terminal using node . patch

germcosti commented 2 days ago

Yes here it is. I tried on a different PC as well and it did the same Screenshot_26

XielQs commented 2 days ago

can you go to httptoolkit directory and open a cmd on it then start "HTTP Toolkit.exe" and share the screenshot

germcosti commented 1 day ago

Nothing shows up in cmd, but the app is running in task manager. If I node . restore the app opens fine

germcosti commented 1 day ago

After restoring the patch, uninstalling node.js and reinstalling node.js and patching the app, it now works

XielQs commented 1 day ago

that's weird, maybe cause of nodejs version?

XielQs commented 1 day ago

closing for now