parcel icon indicating copy to clipboard operation
parcel copied to clipboard

readFileSync not resolving symbolic links

Open kcoop opened this issue 2 years ago • 0 comments

When using yarn add link: to install a local version of a dependency, then attempting to load a file from within that package with readFileSync, the dreaded and initially mystifying Uncaught TypeError: (0 , _fs.readFileSync) is not a function message appears, indicating Parcel was unable to resolve the file.

A workaround is to install a copy of the package with yarn add file:. This works, but it's not optimal, as it means local development of the dependent package must be done against a copy.

Software Version(s)
Parcel 2.6.2
Node 18.7.0
npm/Yarn yarn 1.22.19
Operating System MacOS Monterey 12.5

kcoop avatar Aug 08 '22 02:08 kcoop