Post

I'm mentoring a good friend of mine - which also happened to be my manager and CEO of a startup I worked for - and we experienced some real, weird bugs using node modules and git locally! I've never experienced those myself, so it was really hard to find out what was going on 👻

It was a simple React app, but often times the git history and remote config would just go crazy. npm start would also just stop working with some weird timeout errors reading files. It was like this for weeks, until I noticed something funny...

He uses a MacBook and his projects folder was being synced with iCloud Drive. So every time any file was changed, iCloud Drive sync'ed them with remote. Problem is, `.git` and `node_modules` folders change quite often and iCloud Drive started to loose some files between changes. What a nightmare!

Well, we didn't spend time confirming that iCloud Drive was loosing files, so that's still an assumption. But getting that folder out of iCloud Drive sync stopped the issue 🤷‍♂️

0 reposts0 likes

No replies yet.