pavelk2 / social-feed

JavaScript plugin that shows a user feed from the most popular social networks
http://pavelk2.github.io/social-feed-example/
MIT License
962 stars 304 forks source link

Webpack - Dependencies cannot be found. #205

Open blamejen opened 8 years ago

blamejen commented 8 years ago

Have anyone tried with webpack? I am having trouble to get it working.

moment - not found console error: doT is not defined

HartLarsson commented 8 years ago

what is the webpack? You must follow the installation instructions, by looking to your error is quite evident yuo forgot to include in the header of the html some dependency javascripts.

please read the "Getting Started" here: https://github.com/pavelk2/social-feed

blamejen commented 8 years ago

Webpack is js module bundler. https://webpack.github.io/

in js file,

import $ from 'jquery';
import Codebird from 'codebird-js';
import DoT from 'doT';
import Moment from 'moments';
import 'social-feed/js/jquery.socialfeed.js';

then initialize plugin then webpack does a job to compile.

mattiaband commented 6 years ago

same problem for me as well. i followed your instructions > bower install social-feed

screen shot 2017-10-05 at 21 36 03

but I have this error > Uncaught ReferenceError: doT is not defined

any ideas?

@blamejen did you find a solution?