You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating xlucene-parser to ESM there was an issue with importing ts-pegjs that required either a patch or a post-install script to modify a few of its import statements. The current post-install fix isn't working in an internal project that uses yarn 3.7.0 with plug'n'play. The specific error: Error: EROFS: read-only filesystem, open '/node_modules/ts-pegjs/dist/tspegjs.mjs'.
It may be possible to modify the permissions of tspegjs.mjs from within the post-install script, but if not we could consider using https://www.npmjs.com/package/patch-package to make patching in yarn 1 easier.
The text was updated successfully, but these errors were encountered:
It looks like the EROFS error was because I was importing xlucene-parser from my local branch. Once it was published to npm it imports properly.
EDIT: the issue came back in the next dependency update.
The problem is that yarn PnP creates a read-only virtual file sytem and the post-install script is attempting to write to disk. The issue was resolved by importing ts-pegjs alongside xlucene-parser and then 'unplugging' it from the virtual file system so that it can be modified.
When updating xlucene-parser to ESM there was an issue with importing
ts-pegjs
that required either a patch or a post-install script to modify a few of its import statements. The current post-install fix isn't working in an internal project that uses yarn 3.7.0 with plug'n'play. The specific error:Error: EROFS: read-only filesystem, open '/node_modules/ts-pegjs/dist/tspegjs.mjs'
.It may be possible to modify the permissions of
tspegjs.mjs
from within the post-install script, but if not we could consider using https://www.npmjs.com/package/patch-package to make patching in yarn 1 easier.The text was updated successfully, but these errors were encountered: