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
[h3] [unhandled] TypeError: fn2 is not a function
at eval (/tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/@[email protected][email protected][email protected]_@[email protected][email protected][email protected]._4j6ut5gr2pxbf4za75tzgblw4q/node_modules/@solidjs/start/dist/server/handler.js:38:29)
... 4 lines matching cause stack trace ...
at async Server.toNodeHandle (file:///tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:2249:7) {
cause: TypeError: fn2 is not a function
at eval (/tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/@[email protected][email protected][email protected]_@[email protected][email protected][email protected]._4j6ut5gr2pxbf4za75tzgblw4q/node_modules/@solidjs/start/dist/server/handler.js:38:29)
at async _callHandler (file:///tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1821:16)
at async _callHandler (file:///tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1821:16)
at async file:///tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1962:19
at async Object.callAsync (file:///tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/[email protected]/node_modules/unctx/dist/index.mjs:72:16)
at async Server.toNodeHandle (file:///tmp/tmp.cE85ExhNff/solid-project/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:2249:7),
statusCode: 500,
fatal: false,
unhandled: true,
statusMessage: undefined,
data: undefined
}
Back on SolidStart 0.3 I used to be able to handle both GET and POST requests using the same function using the above code. This is now broken that we've upgraded to 1.0.
Duplicates
Latest version
Current behavior 😯
Expected behavior 🤔
not throw error
Steps to reproduce 🕹
src/routes/foo.tsx
Try and visit the route.
Context 🔦
Back on SolidStart 0.3 I used to be able to handle both
GET
andPOST
requests using the same function using the above code. This is now broken that we've upgraded to 1.0.Your environment 🌎
The text was updated successfully, but these errors were encountered: