Support Forums

Deploy fails with missing Netlify dependency

I need advice to debug SvelteKit deploy Netlify App

Hi @renefournier,

Could you try to add stream/package.json in the external_node_modules block as explained here: File-based configuration | Netlify Docs

To netlify.toml? Like:

command = “npm run build”
publish = “build/”
functions = “functions/”
external_node_modules = [“stream/package.json”]

The problem was with the netlify.toml file I was using.

Old, bad, copy-pasted from outdated tutorial (creates stream error)

  command = "npm run build"
  publish = "build/"
  functions = "functions/"

New, works

  command = "npm run build"
  publish = "build"
 command = "svelte-kit dev"
  directory = "netlify/functions"
  node_bundler = "esbuild"