[SvelteKit] Internal error during "Functions bundling"

site: youthful-agnesi-bb689b

3:15:43 PM: ────────────────────────────────────────────────────────────────
3:15:43 PM:   Internal error during "Functions bundling"                    
3:15:43 PM: ────────────────────────────────────────────────────────────────
3:15:43 PM: ​
3:15:43 PM:   Error message
3:15:43 PM:   Error: readdirp: root argument is required. Usage: readdirp(root, options)
3:15:43 PM: ​
3:15:43 PM:   Error location
3:15:43 PM:   During Functions bundling
3:15:43 PM:       at readdirp (/opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/node_modules/readdirp/index.js:262:11)

The initial build is failing. I don’t have any functions in the source code.

netlify.toml:

[build]
  command = "npm run build"
  publish = "build/"

Ive never seen this issue with initial deploying other Svelte projects.

Hi @caleb

This error was reported here to which you can find a possible solution here.

1 Like

Thank you so much. That worked perfectly.

1 Like