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

Error in bower install #911

Closed
JohnBueno opened this issue May 7, 2015 · 10 comments
Closed

Error in bower install #911

JohnBueno opened this issue May 7, 2015 · 10 comments

Comments

@JohnBueno
Copy link

I just installed isotope via bower:

bower install isotope --save

Before I even try to implement I start getting the following error.

Uncaught TypeError: Cannot read property 'Item' of undefined
(outlayer.js line 42)

Tried trouble shooting it for a bit to no avail.

@desandro
Copy link
Member

desandro commented May 7, 2015

Sounds like you're missing some files in your build process. What are you using?

@JeanLoureiro
Copy link

Any updates?
I am having the same issue.

Cheers

@spdaly
Copy link

spdaly commented May 15, 2015

+1

I installed via Bower. Confirmed that all dependencies are in script tags.

@spdaly
Copy link

spdaly commented May 15, 2015

I found the following issue on a dependent JS (metafizzy/outlayer#33). The problem is with the Bower setup and using wiredep.

I mod'd the bower.json file to use the pkgd JS version of Isotope. Not a permanent fix, but gets me through this issue.

@ethanclevenger91
Copy link

Related to @spdaly's comment, you probably don't want to edit Isotope's bower file. Rather, try adding the following to your own bower overrides:

"isotope": {
      "main": "dist/isotope.pkgd.min.js",
      "dependencies": null
    }

@xelhark
Copy link

xelhark commented May 26, 2015

It might be related to #879 . I solved it using @EHLOVader 's solution

@desandro
Copy link
Member

desandro commented Jun 4, 2015

Closing this issue here as a duplicate of #879.

@NeXTs
Copy link

NeXTs commented Oct 2, 2015

@ethanclevenger91 Thank you! This solved my problem with "bower-main-files" and dependent outlayer plugin

@nixoschu
Copy link

nixoschu commented Nov 2, 2015

I needed to set dependencies to an empty array/object instead of null as @ethanclevenger91 pointed out. Thank anyway for the direction :)

  "overrides": {
    "isotope": {
      "main": "dist/isotope.pkgd.min.js",
      "dependencies": {}
    }
  }

@eeiswerth
Copy link

+1 @nixoschu

@metafizzy metafizzy locked and limited conversation to collaborators Dec 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

9 participants