Replies: 1 comment
-
|
I found out it's an open issue in Bun, so I hope they will solve it there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, building an app with SvelteKit I introduced a change related to a
Batchclass, that probably caused some circular imports in the code. Before this change the app used to build and work fine, but now I can't compile it.This is the log of the build script:
It shows an error related to a failed initialization of one of my modules, specifically when loading it inside the
analysefunction of SvelteKit.I tried to search for issues in my code but the changes that I introduced shouldn't have caused the error to appear now. So I tried to look at SvelteKit's code and found that slightly modifying the snippet that loads the modules from the server manifest makes the compilation complete succesfully.
The change that I introduced ensures that the loading is sequential, in a
forloop, instead of parallel withPromise.all. I don't have extensive knowledge of the internals of SvelteKit so this might be completely unrelated to the real problem, but it solves mine.In
packages/kit/src/core/postbuild/analyse.js:Unfortunately I don't know how I could reproduce this error in a minimal way, if someone has ideas any ideas for debugging then I would be grateful.
Beta Was this translation helpful? Give feedback.
All reactions