javascriptmeteorinstagraminstafeedjs

Can't load instafeed.min.js


I'm trying to add the instaFeed on my web app but I got this error:

instafeed.min.js:1 Uncaught SyntaxError: Unexpected token <

I think it's because I don't add correctly the script but yeah I can't find what's wrong : enter image description here

And in my Javascript I create a feed like this when I click on a button:

 'click #goToInstagramFeed'(event){
    setTimeout(function(){
      var feed = new Instafeed({
          get: 'tagged',
          tagName: 'awesome',
          clientId: 'myId'
      });
      console.log("dans le script");
      feed.run();
      window.scrollTo(0,200);
    }, 5000)
 } 

Thank you


Solution

  • Script tags do not work when placed inside Blaze template. In Meteor to use 3rd party JS library, you could either: