-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building SSR with vite fails due to fs/promises #6073
Comments
|
unforrutnately this is blocked for a bit. Started because we need it for creating proofs, we still need a WASM endpoint for aztec/client IVC Will tackle 5050 and some of the others though! |
Below vite.config fixes the issue for me. Had to explicitly include import { defineConfig } from "vite";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import topLevelAwait from "vite-plugin-top-level-await";
export default defineConfig({
plugins: [nodePolyfills({ include: ["fs/promises"] }), topLevelAwait()],
}); |
@saleel could you and @critesjosh work together to ensure this is reflected in our docs? thanks! |
looks like this was fixed at some point. |
not fixed. Failing with this error as of 0.67.0
|
it was fixed |
I am using sveltekit and vite to build my app. Running
vite build
fails with this error:Looks like
node-stdlib-browser
does NOT supportfs/promises
. Not sure why vite wants to usenode-stdlib-browser
for an SSR build but it is what it is.I can provide a repro if this issue is going to be fixed.
The text was updated successfully, but these errors were encountered: