Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with rails-assets-masonry #280

Closed
smaboshe opened this issue Sep 17, 2015 · 3 comments
Closed

Problem with rails-assets-masonry #280

smaboshe opened this issue Sep 17, 2015 · 3 comments

Comments

@smaboshe
Copy link

Hello!

I'm using the Rails Assets masonry component (gem 'rails-assets-masonry') in a Rails 4.2.4 project. After installing the component with bundler and requiring the library in application.js, I get the following error (using the Chrome developer tools console):

Uncaught TypeError: Cannot read property 'create' of undefined

Using masonry via the CDN works fine. Is there a way to verify that the masonry component actually works?

I've created a demo repository to demonstrate my issue:
https://github.com/smaboshe/Chavuma

@danielmag
Copy link

Also happening with me. I think the problem is that the require should load the packaged version and not the normal one

@monttda
Copy link
Contributor

monttda commented Dec 2, 2015

It is an issue of Masonry. See the issue at their repository desandro/masonry#618 (comment)

@monttda monttda closed this as completed Dec 2, 2015
@tkhduracell
Copy link

tkhduracell commented Jan 4, 2017

You can use //= require masonry/dist/masonry.pkgd to solve this problem, instead of the include specified in https://rails-assets.org/#/components/masonry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants