Giter VIP home page Giter VIP logo

Comments (8)

tleunen avatar tleunen commented on July 25, 2024

Sorry about that, I published 0.9.1 earlier to fix the issue.

Let me know if you still have the bug once you update

from react-mdl.

marcelpanse avatar marcelpanse commented on July 25, 2024

Hi, I've upgraded to v0.9.1 but still have the same issue.

from react-mdl.

tleunen avatar tleunen commented on July 25, 2024

Hmm ok, will take a look

from react-mdl.

tleunen avatar tleunen commented on July 25, 2024

Just tested your example and it works fine for me with 0.9.1.
Are you sure it's the version you use?
Check the index.js file from the downloaded react-mdl and the one from the repository. They should be the same.

In 0.9.1, I changed it so it properly exports Card.

from react-mdl.

marcelpanse avatar marcelpanse commented on July 25, 2024

Hmm, very strange, I have the newest files and I see the changes in index.js where you changed it to Card: Card.default, but still the same error.

I will try it on a clean project without any other packages and see if I can reproduce it and upload it to a public git repo so you can test it..

from react-mdl.

tleunen avatar tleunen commented on July 25, 2024

Oh I see the error.
You should use this syntax:

import { Card } from 'react-mdl'

React-mdl is a set of multiple components, therefore you have to get the one you need. Otherwise you can do this:

import ReactMDL from 'react-mdl`
var Card = ReactMDL.Card;

But the first example in your initial post should work fine.

from react-mdl.

marcelpanse avatar marcelpanse commented on July 25, 2024

It works!

I actually did try that as you can see in my initial question, but then it probably didn't work because of the bug you fixed in 0.9.1.

Thanks

from react-mdl.

tleunen avatar tleunen commented on July 25, 2024

Exactly :)

from react-mdl.

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.