docusaurus-search-local
docusaurus-search-local copied to clipboard
"Error: EROFS: read-only filesystem" when using Yarn PnP
Please describe the bug you are seeing
yarn build fails with the following error:
[INFO] [en] Creating an optimized production build...
[ERROR] Unable to build website for locale en.
[ERROR] Error: EROFS: read-only filesystem, open '/node_modules/@cmfcmf/docusaurus-search-local/src/client/theme/SearchBar/generated.js'
How can we best reproduce the bug?
I think this occurs when using PnP because packages become .zip files in .yarn/cache/.
Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?
From yarn info:
@docusaurus/core@npm:2.1.0 @cmfcmf/docusaurus-search-local@npm:0.11.0
Which Node.js version are you using?
v18.7.0
Which theme are you using?
Yes, I am using @docusaurus/theme-classic
How does your plugin config look like?
No response
Additional context
Allow the user to configure the folder in which generated files are stored.