A story.
Okay, Twitter updated their code a while back so the verified badge and the number of 'Quote Tweets' isn't hidden even though I have Hide Likes on. Several people have told me about it over the last few months so it's about time I fix it. Let's open up this bad boy.
cd hide-likes
npm run develop
Huh, it's broken. What the heck? It's only been several months since I last ran this. Maybe my dependencies are off?
npm run install
npm run develop
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '/Users/dskang/Code/hide-likes/node_modules/@babel/compat-data/data/corejs3-shipped-proposals'
It still doesn't work. Err, I guess I'll try getting the latest dependencies.
ncu -u
[...]
Oh boy, everything's broken now. Wait, why is my webpack config in JS? I switched it to Typesc— Ah, I updated the configs for Intention and Hide Feed but not Hide Likes. Well, I don't want to individually apply all the changes I've made to my other projects to Hide Likes so I guess I'll port it over.
Dang, there's a lot that's different. Why do I have individual copies of each webpack config anyway? I'll make a helper file with a factory function that generates the config based on a few parameters since most of the config is the same across projects anyway. I'll use the latest config on Browserflow to create a generic version.
[...]
[...]
[...]
It finally works. Now time to update to the latest dependencies so that I can get it to work for Hide Likes as well.
ncu -u
Wait a second. The latest version of React is v17.0 now? When did that happen? Wow, three days ago. Well, it's a stepping stone release so hopefully it won't break anything.