dev build Emfile error
Hello there,
I am working on an extension project using plasmo, since few days I am getting an EMFILE error: « too many open files » on the npm run dev command.
I feel that I reach a point where the hot reload can not watch all the files anymore because I don’t have the problem on the npm run build command.
I think that the watcher is also looking at the nodes modules cause my extension I not that big.
My question, if you agree with my hypothesis is : how to not make plasmo( the hot reload )watch over node modules files?
14 Replies
@irdane can you try clearing the cache (via rmdir
.plasmo
)
if that doesn't work, can you paste your verbose log
Also which version of plasmo are you using?Thanks Louis for your answer. Unfortunately I already try to delete the cache and it does not work. I tried again to be sure, same result.
Here some screenshots of the error logged and the package.json
@irdane has reached level 1. GG!
Can you run it with
npm dev -- --verbose
The watcher ignore all node_modules
. It seems that the raw scheme is being used extensively (?)Thanks for the precisions about the watcher. Here the logs of npm run dev — —verbose
Do you use the
raw:
scheme anywhere in your popup?Can you précise what is raw: ? I don’t feel I am using any but maybe I don’t get what it is exactly.
It's one of the import scheme we support: https://docs.plasmo.com/framework/import
But that's weird... likely similar to the nextjs issue of trying to resolve a CJS package :d...
The error above is similar to this one: https://github.com/iconoir-icons/iconoir/issues/243
GitHub
BUG: Too many open files on Next 13 · Issue #243 · iconoir-icons/ic...
Prerequisites Version: 6.2.0 Are you running from source/main: No Are you using a released build: Yes Operating system: Deployed on Vercel Step to reproduce Upgrade to 6.2.0 Use tons of Icon everyw...
Which is likely due to barrel file import see: https://discord.com/channels/946290204443025438/1126843970367008819
was this issue solved?
I have it with this error:
@liam47. has reached level 1. GG!