onApiError custom error page
I made the setting to make a custom error page, but when the error occurs, the /api/auth/error page still works, is there something I forgot to do about it?






errorURL seems ignored, error page still redirects to api/auth/error instead of the custom errorURL pagebetter-auth@beta (1.4 beta)errorURL problemonAPIError: {
throw: true,
onError: (error) => {
...
},
errorURL: `/auth/error`,
},✘ [ERROR] Could not resolve "#tanstack-router-entry"
node_modules/@tanstack/start-server-core/dist/esm/createStartHandler.js:29:33:
29 │ routerEntry = await import("#tanstack-router-entry");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
The package import "#tanstack-router-entry" is not defined in this "imports"
map:
node_modules/@tanstack/start-server-core/package.json:49:13:
49 │ "imports": {
╵ ^
You can mark the path "#tanstack-router-entry" as external to exclude it from
the bundle, which will remove this error and leave the unresolved path in the
bundle. You can also add ".catch()" here to handle this failure at run-time
instead of bundle-time.