-
Notifications
You must be signed in to change notification settings - Fork 916
[3.1.0-pre.13] snowpack dev gets stuck on deps of 3rd-party lib #2896
Replies: 2 comments · 7 replies
-
Any chance you have a repo that I could take a look at? Or if not, can you share which top-level packages (the ones imported in your project, with the We've actually had trouble with the |
Beta Was this translation helpful? Give feedback.
All reactions
-
I think all of the ones that show up after server start are ones that are imported inside antd (or their packages). E.g. we don't have any own imports of The two antd packages we have listed in our packages.json are:
snowpack dev output (antd only)
What does it mean when it says |
Beta Was this translation helpful? Give feedback.
All reactions
-
But yeah like I mentioned, of what I've seen so far, anything that shows up post-server-start are things that we don't directly import/use ourselves. I know antd does some funky stuff sometimes so yeah maybe it's better to just fully bundle this one. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Here's the output so far (from the latest run) post-server-start. Output
I'm pretty sure we don't use a lot of these things. As in, not even the components we use use these icons. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Oh nice, this is actually a great package to test for perf since Thanks again for sharing this package, this was great to test against. Made some big improvements here that we can get in for v3.1.0 proper: #2900 |
Beta Was this translation helpful? Give feedback.
All reactions
-
🚀 1
-
np! I see, interesting. Well, thanks a lot for all your hard work and the quick responses to this! |
Beta Was this translation helpful? Give feedback.
All reactions
-
hi @fgblomqvist , i am facing this problem. which version of snowpack are you using currently ? |
Beta Was this translation helpful? Give feedback.
All reactions
-
None unfortunately. We put the migration to Snowpack on ice since there were too many issues (like this one). Hopefully we can return to it in the future but doesn't look like that will be anytime soon. I want to take a look at Vite as a potential alternative (in the meantime), just haven't gotten around to that yet. |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
I just tried upgrading from 3.0.13 to 3.1.0-pre.13 and while building seems to work fine, the
dev
mode does not.It starts by giving me this message:
Which makes sense. Then it proceeds to "work on" all the dependencies.
Eventually (a couple of minutes) I get this:
And it tries to load the page in my browser. However, the page gets stuck on loading (as if it's waiting for something to finish compiling).
Right after those messages, this shows up (and yes, I do use TS):
The timestamp seems off there, idk why this got printed after the server said it was ready, but oh well.
Then this comes:
Alright, I guess it just finished the TS compile, long after snowpack said it was ready 🤔
It also says
watching for file changes...
.At this point the website still doesn't finish loading. Still waiting for something.
What is odd is that snowpack keeps outputting more information on more files it's "working on". Here's a small sample:
And it just goes on and on and on and on and on (I let it spin for almost an hour before but it never finished). It's really slow. It seems to process the dependencies of the dependencies of the dependencies and so forth. Not sure if that's intentional? Also not sure if it's supposed to be this slow. At the very least, these are not things I import directly, but naturally probably something that some component I use imports (we do use the
antd
component library extensively).I'm guessing there's been some change in the latest version that causes this issue, since I don't hit it when using the stable snowpack release.
Beta Was this translation helpful? Give feedback.
All reactions