Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Problem with bower

Hi,

If you look at this, in the src folder, index.html on github

And you look at this error

(index):67 GET http://localhost:3000/bower_components/jquery/dist/jquery.js
(index):67 GET http://localhost:3000/bower_components/jquery/dist/jquery.js

Why is that? I tried every single path I could think off.

And the other doesn't work either, and i commented it out.

I'm bashing two days on this and I can't figure this out.

1 Answer

That doesn't look like an error. It seems to say that it's looking for it jQuery. There's no status code so not sure if it found it or not.

Is the code not working when you try using jQuery?

Well, there is the error. It doesn't work as it says there. And that's what I'm trying to figure out.

Looked at the code on the index page again and I think you have to go back a folder. Instead of ./bower_components try ../bower_components.

Thank you but i stated above that "I tried every single path I could think off." : p so that doesn't work : p

However what I did is this

// ////////////////////////////////////////////////
//
// Move Font-awesome
//
// // /////////////////////////////////////////////
gulp.task('icons', function() {
    return gulp.src('bower_components/components-font-awesome/fonts/**.*')
        .pipe(gulp.dest('src/fonts'));
});





// ////////////////////////////////////////////////
//
// Move jQuery
//
// // /////////////////////////////////////////////
gulp.task('jquery', function() {
    return gulp.src('bower_components/jquery/dist/jquery.min.js')
        .pipe(gulp.dest('src/js'));
});

Which i took the dir and did it with gulp! I hope this is okay!