Giter Club home page Giter Club logo

Comments (9)

viclafouch avatar viclafouch commented on July 20, 2024 4

If you are using next.js, maybe try this:

const nextConfig = {
  transpilePackages: ['mui-color-input'],
}
 
module.exports = nextConfig

from mui-color-input.

viclafouch avatar viclafouch commented on July 20, 2024

Hummm are u sure about version 2.0.2 ? Do you have a link for repro ?

from mui-color-input.

viclafouch avatar viclafouch commented on July 20, 2024

89e2c58 Only thing I changed in 2.0.3

from mui-color-input.

dmitriy-baltak avatar dmitriy-baltak commented on July 20, 2024

Well seems like nothing basically changed by I'm having the issue nonetheless. Both on local env and acc env 2.0.3 doesn't work. I first tried to roll back to 2.0.1 that was working and then to 2.0.2 that worked as well. No repro unfurtunatly since that happens during the build

from mui-color-input.

AkitoItashi avatar AkitoItashi commented on July 20, 2024

I have the same problem and rolling back to version 2.0.2 helped. The error is not occuring anymore.

But I saw one little thing...

I use next.js and tried to import the module dynamically, but that got me an error at version 2.0.2...
The error was "Module not found: Default condition should be last one".

Maybe this could help you?

from mui-color-input.

viclafouch avatar viclafouch commented on July 20, 2024

I have the same problem and rolling back to version 2.0.2 helped. The error is not occuring anymore.

But I saw one little thing...

I use next.js and tried to import the module dynamically, but that got me an error at version 2.0.2... The error was "Module not found: Default condition should be last one".

Maybe this could help you?

This error is fixed in 2.0.3 🙂

from mui-color-input.

joeplaa avatar joeplaa commented on July 20, 2024

If you are using next.js, maybe try this:

const nextConfig = {
  transpilePackages: ['mui-color-input'],
}
 
module.exports = nextConfig

I can confirm @viclafouch' solution works. Thanks!

from mui-color-input.

AkitoItashi avatar AkitoItashi commented on July 20, 2024

Ah thank you very much @viclafouch for the solution!!! ^-^

from mui-color-input.

kutsen-rom avatar kutsen-rom commented on July 20, 2024

Maybe that will help someone, in my case I had to add 'mui-color-input' to withTM

 const withTM = require('next-transpile-modules')([
   ...,
    'mui-color-input',
  ]);

from mui-color-input.

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.