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
By using the get**Scheme methods I see the Cannot read property 'sm' of undefined error thrown at DrawerSidebar component.
pickNearestBreakpoint.ts:9 Uncaught TypeError: Cannot read property 'sm' of undefined
at pickNearestBreakpoint (pickNearestBreakpoint.ts:9)
at useBreakpointConfig (useBreakpointConfig.ts:7)
at DrawerSidebar (DrawerSidebar.tsx:58)
at renderWithHooks (react-dom.development.js:14985)
at mountIndeterminateComponent (react-dom.development.js:17811)
at beginWork (react-dom.development.js:19049)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994)
at invokeGuardedCallback (react-dom.development.js:4056)
at beginWork$1 (react-dom.development.js:23964)
at performUnitOfWork (react-dom.development.js:22776)
at workLoopSync (react-dom.development.js:22707)
at renderRootSync (react-dom.development.js:22670)
at performSyncWorkOnRoot (react-dom.development.js:22293)
at react-dom.development.js:11327
at unstable_runWithPriority (scheduler.development.js:646)
at runWithPriority$1 (react-dom.development.js:11276)
at flushSyncCallbackQueueImpl (react-dom.development.js:11322)
at flushSyncCallbackQueue (react-dom.development.js:11309)
at discreteUpdates$1 (react-dom.development.js:22420)
at discreteUpdates (react-dom.development.js:3756)
at dispatchDiscreteEvent (react-dom.development.js:5889)
By using the
get**Scheme
methods I see theCannot read property 'sm' of undefined
error thrown atDrawerSidebar
component.Mutating the scheme:
Fails with object possibly undefined (
sm
), then when it is assured that it existsif(config.sm)
it throws error thatcollapsible
does not exist:
It looks like the
EdgeSidebarConfig
is missing theCollapsibleSidebarConfig
, I guess it should say:TypeScript: 4.2.3
@mui-treasury/layout: 4.5.0
The text was updated successfully, but these errors were encountered: