When Babel cache gets too big, an exception "TypeError: Method Uint8Array.length called on incompatible receiver" is thrown from fs.writeFileSync
#5259
Labels
Has PR
i: bug
i: enhancement
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
This issue: #2678 (Babel cache errors when it gets too big)
was improperly fixed via this commit: 8ffc701
which worked around the original error but introduced a different error:
which gets thrown from
fs.writeFileSync
: https://github.com/nodejs/node/blob/v4.7.0/lib/fs.js#L1161The error is caused by erroneously passing an
Object
({}
) instead of aString
,Buffer
orUInt8Array
intofs.writeFileSync
. https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_optionsThe error as of now is in the latest
master
ofbabel/packages/babel-register
:babel/packages/babel-register/src/cache.js
Line 26 in 9c2794d
Proposed change:
The text was updated successfully, but these errors were encountered: