-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I am getting this error when trying the guide to deploy the chat-with-pdf project. This is when i run npx nuxflare deploy --stage dev
[nuxi] Nuxt 3.19.2 with Nitro 2.12.6
ℹ Nuxt Icon server bundle mode is set to remote
[nuxt] ℹ Running with compatibility version 4
[nuxi] ℹ Building for Nitro preset: cloudflare-module
ℹ Building client...
ℹ vite v7.1.7 building for production...
ℹ transforming...
ℹ ✓ 24 modules transformed.
ERROR ✗ Build failed in 204ms
[nuxi] ERROR Nuxt Build Error: [vite:vue] crypto.hash is not a function
file: /Users/rpant/code/personal/chat-with-pdf/node_modules/.pnpm/nuxt@3.19.2_@parcel+watcher@2.5.1_@types+node@24.0.3_@vue+compiler-sfc@3.5.21_db0@0.3.2_d5eb5bd4606510bc57d9237f4ed2e8fe/node_modules/nuxt/dist/app/components/nuxt-root.vue
at getHash (node_modules/.pnpm/@vitejs+plugin-vue@6.0.1_vite@7.1.7_@types+node@24.0.3_jiti@2.6.0_lightningcss@1.30.1_t_ebf9c587fe6f30092e952f1e050b2ce6/node_modules/@vitejs/plugin-vue/dist/index.js:140:16)
at createDescriptor (node_modules/.pnpm/@vitejs+plugin-vue@6.0.1_vite@7.1.7_@types+node@24.0.3_jiti@2.6.0_lightningcss@1.30.1_t_ebf9c587fe6f30092e952f1e050b2ce6/node_modules/@vitejs/plugin-vue/dist/index.js:89:23)
at transformMain (node_modules/.pnpm/@vitejs+plugin-vue@6.0.1_vite@7.1.7_@types+node@24.0.3_jiti@2.6.0_lightningcss@1.30.1_t_ebf9c587fe6f30092e952f1e050b2ce6/node_modules/@vitejs/plugin-vue/dist/index.js:1633:33)
at Object.handler (node_modules/.pnpm/@vitejs+plugin-vue@6.0.1_vite@7.1.7_@types+node@24.0.3_jiti@2.6.0_lightningcss@1.30.1_t_ebf9c587fe6f30092e952f1e050b2ce6/node_modules/@vitejs/plugin-vue/dist/index.js:2045:27)
at Object.handler (node_modules/.pnpm/vite@7.1.7_@types+node@24.0.3_jiti@2.6.0_lightningcss@1.30.1_terser@5.43.0_yaml@2.8.0/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:34051:13)
at node_modules/.pnpm/rollup@4.43.0/node_modules/rollup/dist/es/shared/node-entry.js:22269:40