Giter VIP home page Giter VIP logo

Comments (4)

eiriklv avatar eiriklv commented on July 20, 2024

@john-osullivan Are you using the Meteor React package? What version of React is that? :-) Unfortunately I haven't played around much with Meteor and don't have any obvious clues to of what to look for.

from react-masonry-component.

john-osullivan avatar john-osullivan commented on July 20, 2024

Yup, I'm using the Meteor React package. I believe it was recently upgraded to 0.14.1, specifically not to 0.14.2. That's what the devs said in an issue, I'll link out when I'm at my computer.
If it'd any additional trouble shooting help, it's a component I've defined myself using ES6 classes.-------- Original message --------From: "Eirik L. Vullum" [email protected] Date: 12/5/2015 07:30 (GMT-05:00) To: eiriklv/react-masonry-component [email protected] Cc: john-osullivan [email protected] Subject: Re: [react-masonry-component] "Bad masonry element" (#9)
@john-osullivan Are you using the Meteor React package? What version of React is that? :-) Unfortunately I haven't played around much with Meteor and don't have any obvious clues to of what to look for.


Reply to this email directly or view it on GitHub.

from react-masonry-component.

migreva avatar migreva commented on July 20, 2024

I was typing a response to this question just as 3.0.0 was published!

I think 3.0.0 fixes the issue, I think the problem might have been the ES6 import syntax I was using (which I assume @john-osullivan is using because he's using ES6 classes).

The following way I was importing was throwing an error when using 2.0.0:

import React from 'react';
import Masonry 'react-masonry-component';

2.0.0 was the published npm module, and using that I needed to use the 2.0.0 syntax of importing:

import React from 'react';
var Masonry = require('react-masonry-component')(React);

With 3.0.0, I was able to use the following

import React from 'react';
import Masonry form 'react-masonry-component'

from react-masonry-component.

afram avatar afram commented on July 20, 2024

@john-osullivan I would like to close this issue as it has been inactive for a while. Please reopen if you are still having issues :-)

from react-masonry-component.

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.