Giter VIP home page Giter VIP logo

Comments (9)

oliviertassinari avatar oliviertassinari commented on September 24, 2024 2

Notice that Material-UI v4.5.2 will soon come out with a warning instead of an exception for the import of this private module.

from react-image-annotate.

oliviertassinari avatar oliviertassinari commented on September 24, 2024 1

Sorry for the trouble, does the import come from the auto-import feature of your IDE?
I would encourage the following:

-import { makeStyles } from "@material-ui/core/styles"
-import createMuiTheme from "@material-ui/core/styles/createMuiTheme"
-import MuiThemeProvider from "@material-ui/core/styles/MuiThemeProvider"
+import {
+  makeStyles,
+  createMuiTheme,
+  MuiThemeProvider,
+} from "@material-ui/core/styles"

These are private imports.

https://github.com/waoai/react-image-annotate/blob/fd8eb7e87cc1bb609a548e167e80d683bfa0dfc0/src/Theme/index.js#L5-L6

from react-image-annotate.

oliviertassinari avatar oliviertassinari commented on September 24, 2024 1

What do you mean by

@ArcticTee Sorry, it was a question for the author of the package.

This could be a potential workaround: mui/material-ui#17900 (comment).

from react-image-annotate.

seveibar avatar seveibar commented on September 24, 2024 1

@ArcticTee thanks for reporting, assigning myself to fix this issue.

from react-image-annotate.

ArcticTee avatar ArcticTee commented on September 24, 2024

Edited: I guess the fix for your Theme would work.

from react-image-annotate.

ArcticTee avatar ArcticTee commented on September 24, 2024

@oliviertassinari Sorry, confused you with the author or contributors of this package😂

from react-image-annotate.

oliviertassinari avatar oliviertassinari commented on September 24, 2024

Your best workaround is to freeze @material-ui/core to v4.5.0.

from react-image-annotate.

ArcticTee avatar ArcticTee commented on September 24, 2024

I solved it by using

    "@material-ui/core": "4.4.0",
    "@material-ui/lab": "4.0.0-alpha.22",

in my package.json

from react-image-annotate.

seveibar avatar seveibar commented on September 24, 2024

fixed in 0.1.28

from react-image-annotate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.