creativetimofficial / material-dashboard-react

React version of Material Dashboard by Creative Tim
https://www.creative-tim.com/product/material-dashboard-react
MIT License
2.82k stars 4.13k forks source link

[Bug] cannot read pathname of undefined #209

Closed Asiya1330 closed 1 year ago

Asiya1330 commented 1 year ago

Version

1

Reproduction link

https://github.com/Asiya1330/creativeTim

Operating System

windows

Device

hp core intel i3

Browser & Version

chrome & Version 112.0.5615.138 (Official Build) (64-bit)

Steps to reproduce

const routes = [ { type: "collapse", name: "Dashboards", key: "dashboards", icon: dashboard, collapse: [ { name: "Analytics", key: "analytics", route: "/dashboards/analytics", component: , }, ], }, {

I have added this in my routes.js but it says, cannot read pathname of undefined.

What is expected?

show nested routes

What is actually happening?

throw error


Solution

Additional comments

sajadevo commented 1 year ago

Hey there,

Thanks for using our product, unfortunately nested routes are not available for the free version.

Regards, Sajad