Worker was unable to load entry point "dist/functions/routes.js": Cannot find module 'C:\home\site\wwwroot\node_modules\debug\src\index.js'. Please verify that the package.json has a valid "main" entry
What causes it and how to fix it:
- .funcignore pattern src/ also empties node_modules/*/src — the deployment succeeds, the functions don't loadAzure/functions-action applies .funcignore with gitignore semantics to every path in the package, so src/ or test/ without a leading slash also empties those folders inside node_modules. A dependency whose entry file lives in src/ (debug, for one) fails to load, the worker registers no functions and the function routes return 404. Anchor root patterns with a leading slashCause and fix →