TypeStrong / tsify

Browserify plugin for compiling TypeScript
345 stars 74 forks source link

Using filesystems with mixed case sensitivity breaks build #277

Closed thammi closed 3 years ago

thammi commented 3 years ago

When mounting a case insensitive filesystem inside a filesystem that is case sensitive the build can fail. When the mount point (which is on the case sensitive filesystem) contains an uppercase letter the build will fail.

We are using a Debian Parallels VM on a Mac Mini. Parallels automatically mounts the native home of the user at /media/psf/Home. When building inside this mount point the filesystem is correctly detected as case insensitive and all filenames are converted to lowercase internally. The filesystem containing the mount point is case sensitive which means that /media/psf/home does not exist and all paths are invalid. This breaks the build in a way that is very confusing and hard to debug (error messages say that type definitions for react are missing that were installed using @types/react).