Menu icon Foundation

Developer | Fort Lauderdale, FL

My Posts

No Content

My Comments

David Castro commented on Shannon Schärer's post over 2 years

I had the same problem and it turns out it was just the order of the files in config.yaml. I had it set up like this:
# Paths to your own project code are here
- "src/assets/js/!(app).js"
- "src/assets/js/app.js"
- "bower_components/masonry/dist/masonry.pkgd.js"
So I was trying to use it in app.js before it was defined in the next file. I changed it to:
# Paths to your own project code are here
- "bower_components/masonry/dist/masonry.pkgd.js"
- "src/assets/js/!(app).js"
- "src/assets/js/app.js"
and it works now.

Posts Followed


Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Shannon Schärer's post over 2 years

I had the same problem and it turns out it was just the order of the files in config.yaml. I had it set up like this:
# Paths to your own project code are here
- "src/assets/js/!(app).js"
- "src/assets/js/app.js"
- "bower_components/masonry/dist/masonry.pkgd.js"
So I was trying to use it in app.js before it was defined in the next file. I changed it to:
# Paths to your own project code are here
- "bower_components/masonry/dist/masonry.pkgd.js"
- "src/assets/js/!(app).js"
- "src/assets/js/app.js"
and it works now.

Posts Followed

Following

  • No Content

Followers

  • No Content