Hello there,
I’m working on a SvelteKit website and deploying it to Netlify. I’m having some issues with a particular error. Everything works locally, but on Netlify I get an error saying:
A Netlify Function failed to require one of its dependencies
5:09:11 PM: Please make sure it is present in the site's top-level "package.json".
5:09:11 PM: In file "/opt/build/repo/app/.netlify/functions-internal/render.js"
5:09:11 PM: Cannot find module './llhttp/llhttp_simd.wasm.js' from '/opt/build/repo/app/.netlify'
Is there anything I can do on the SvelteKit side of things to improve this? I can’t find anything that I’m doing, as I’ve followed the instructions directly from both SvelteKit and Netlify
Full Error: 5:36:06 PM: ────────────────────────────────────────────────────────────────
5:36:06 PM: Dependencies installation error
5:36:06 PM: ────────────────────────────────────────────────────────────────
5:36:06 PM:
5:36:06 PM: Error message
5:36:06 PM: A Netlify Function failed to require one of its dependencies.
5:36:06 PM: Please make sure it is present in the site's top-level "package.json".
5:36:06 PM: In file "/opt/build/repo/app/.netlify/functions-internal/render.js"
5:36:06 PM: Cannot find module './llhttp/llhttp_simd.wasm.js' from '/opt/build/repo/app/.netlify'
Github: GitHub - INTERNAL-ERROR/AudreyTk
Replit: AudreyTk - Replit