Replies: 2 comments 3 replies
-
I originally put forth pinning the Material-UI version as a fix for this issue. But as another workaround that addresses the issue directly, @logc let me know about a code change you can make to the import of In the client/src/common/pymui.py module, change the import of createMuiTheme = require('@material-ui/core/styles/createMuiTheme')['default'] to this: createMuiTheme = require('@material-ui/core/styles/createTheme')['default'] So instead of locking in the version, this approach also works without having to change any other source code.
Side Note... createMuiTheme = require('@material-ui/core/styles/createTheme')['createMuiTheme'] which allows the source code to compile properly, but note that this will result in a deprecation warning about the name change when you run it: Material-UI: the createMuiTheme function was renamed to createTheme.
You should use `import { createTheme } from '@material-ui/core/styles'` |
Beta Was this translation helpful? Give feedback.
-
Finishing chapter 19 now. I'm was able to get it to work as described by running the flask server as a separate process from the parcel server. Just want to make sure that is correct/expected. |
Beta Was this translation helpful? Give feedback.
-
If you are experiencing problems getting the project to build with errors related to
@material-ui/core
, try changing the dependency in the package.json file to remove the caret (^) from the version number for that library so that npm doesn't install a later version:"@material-ui/core": "4.11.0"
There was apparently a breaking change in version 4.12.0 in the
styles
module that would otherwise require refactoring of the project source code.Beta Was this translation helpful? Give feedback.
All reactions