You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
◈ Extracted function errorHandler from /home/chris/dev/prosopo/captcha-private/netlify/functions/errorHandler.zip.
undefined
› Warning: TypeError: Cannot read properties of undefined (reading 'mainFile')
› at FunctionsRegistry.registerFunction (file:///home/user/.nvm/versions/node/v20.12.2/lib/node_modules/netlify-cli/dist/lib/functions/registry.js:320:80)
› at async file:///home/user/.nvm/versions/node/v20.12.2/lib/node_modules/netlify-cli/dist/lib/functions/registry.js:413:13
› at async Promise.all (index 1)
› at async FunctionsRegistry.scan (file:///home/user/.nvm/versions/node/v20.12.2/lib/node_modules/netlify-cli/dist/lib/functions/registry.js:374:32)
› at async startFunctionsServer (file:///home/user/.nvm/versions/node/v20.12.2/lib/node_modules/netlify-cli/dist/lib/functions/server.js:279:5)
› at async BaseCommand.dev (file:///home/user/.nvm/versions/node/v20.12.2/lib/node_modules/netlify-cli/dist/commands/dev/dev.js:138:31)
› at async BaseCommand.parseAsync (/home/user/.nvm/versions/node/v20.12.2/lib/node_modules/netlify-cli/node_modules/commander/lib/command.js:935:5)
› at async file:///home/user/.nvm/versions/node/v20.12.2/lib/node_modules/netlify-cli/bin/run.js:27:3
Main file is actually present on the function definition:
Describe the bug
When running
netlify dev
it crashes with node 20 and gives the errorWarning: TypeError: Cannot read properties of undefined (reading 'mainFile')
Main file is actually present on the function definition:
Steps to reproduce
netlify/functions
after having built them with from TS usingnetlify functions:build --src ./src --functions ./functions
Configuration
Environment
The text was updated successfully, but these errors were encountered: