#Upgraded to 3.60.0 runtime TypeError

1 messages · Page 1 of 1 (latest)

upper hazel
#

pathToRegexp

My project with Payloadcms 3.60.0 and Next Js 15.5.6 throws the pathToRegex error

My project with Payloadcms 3.59.1 and Next Js 15.5.5 runs well without issues.

upper hazel
#

I found what was causing this runtime error. I had this code in the payload config:

// custom dashboard view
views: {
  dashboard: {
    Component: '@web-cms/components/Webarto/MyDashboard/MyDashboard#MyDashboard',
   },
},

And I wasn't passing a path to it. By passing a path: '/' the runtime error is now gone.
final code:

// custom dashboard view
views: {
  dashboard: {
    path: '/',
    Component: '@web-cms/components/Webarto/MyDashboard/MyDashboard#MyDashboard',
   },
},

edit: changed path from '/admin' to '/'