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
As a test I downloaded a fresh copy of material-dashboard-2-pro-react-v1.0.2, ran pnpm install for the packages on node 18 and then attempted pnpm build and got the error below -- literally nothing but download, install packages and attempt build
Creating an optimized production build...
[BABEL] Note: The code generator has deoptimised the styling of /Users/kris/Downloads/material-dashboard-2-pro-react-v1.0.2 2/src/assets/images/illustrations/pattern-tree.svg as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
Failed to compile.
TS2307: Cannot find module 'prop-types' or its corresponding type declarations.
17 |
18 | // prop-types is a library for typechecking of props
Version
1.0.2
Reproduction link
https://example.com
Operating System
macos
Device
macbook pro
Browser & Version
webstorm IDE latest
Steps to reproduce
TS2339: Property 'palette' does not exist on type 'Theme | undefined'.
19 |
20 | export default styled(Box)(({ theme, ownerState }: { theme?: Theme; ownerState: any }) => {
> 21 | const { palette, typography, borders, functions } = theme;
| ^^^^^^^
22 | const { color } = ownerState;
23 |
24 | const { white, gradients } = palette;
What is expected?
should compile
What is actually happening?
breaks on compile
Solution
Additional comments
The text was updated successfully, but these errors were encountered: