Dependency Load Error ENOENT: no such file or directory... #2459
Replies: 5 comments 12 replies
-
|
I do not get the error anymore. It might be related to #2463 It would be great if snowpack could output a better error (or fails earlier) if the issue is related to the link above. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I'm getting a similar issue to this but I couldn't solve it with #2463 as mentioned above. I'm getting a few errors that all read something to the effect: It seems to be a blocker from moving forward with snowpack. Any advice or direction would be much appreciated? |
Beta Was this translation helpful? Give feedback.
-
|
Hey yall, I know that there are both speed improvements and windows fixes in #2707. I just tried out I'm just getting tests passing, and then will post a |
Beta Was this translation helpful? Give feedback.
-
|
Got one too, with a different file
I don't know if it has something to do with my git, but it works fine in my mac machine. |
Beta Was this translation helpful? Give feedback.
-
|
I deleted the .chache folder in node_modules and it fixed. Snowpack creates .cache folder every time i start it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a non trivial project that I am porting to snowpack 3
I can do
snowpack buildwithout issueBut when I do
snowpack devI get severalDependency Load Error ENOENT: no such file or directory...it shows both in the console and as overlay in the app
or
This looks like a bug in snowpack but have no idea where to start digging deeper
Interestingly it seems similar to the issue about "no such file..." listed in common errors here : https://www.snowpack.dev/reference/common-error-details
Could it be that the bug was not fully fixed in snowpack 2.6 or maybe reintroduced in 3.x ?
By the way, I got another snowpack project which also use @curi/svelte without problem
[Update]:
I started to look deeper in snowpack and the issue arise from a failure here : https://github.com/snowpackjs/snowpack/blob/76dca31aa0518d5e672e5f81ef272726db420202/snowpack/src/commands/dev.ts#L472
I noticed that the
development/commonfolder is used by snowpack to put in different libs.I also noticed that in some project some libs are put in
development/commonand in some other the libs are just put indevelopment/<libname>/jsBy manually copying the files that are missing in
.cache/snowpack/developmentI can make the error goes but each I see more files missing.So I guess the dependency buidler that is supposed to build up those files is not working. Any clue where that fails or even why ?
Beta Was this translation helpful? Give feedback.
All reactions