I have a multistep form and on step 1 have a server action that just inserts 2 values into a table after a security identity step:
I get the following error:
{
"status": "500",
"message": "Cannot read properties of undefined (reading '0')",
"stack": "TypeError: Cannot read properties of undefined (reading '0')\n at App.range (/Users/marcelschmidt/Documents/myadvisor/lib/validator/core.js:230:62)\n at Object.validateRule (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:93:36)\n at Object.validateField (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:83:29)\n at Object.validateFields (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:58:28)\n at Object.init (/Users/marcelschmidt/Documents/myadvisor/lib/validator/index.js:11:24)\n at App.define (/Users/marcelschmidt/Documents/myadvisor/lib/core/app.js:376:29)\n at /Users/marcelschmidt/Documents/myadvisor/lib/core/middleware.js:13:40\n at Layer.handle [as handle_request] (/Users/marcelschmidt/Documents/myadvisor/node_modules/express/lib/router/layer.js:95:5)\n at next (/Users/marcelschmidt/Documents/myadvisor/node_modules/express/lib/router/route.js:137:13)\n at next (/Users/marcelschmidt/Documents/myadvisor/node_modules/express/lib/router/route.js:131:14)"
}
Might be that I forgot how to do this or because it is my first time using node.js as server langauge.
Community Page
Last updated:
Last updated: