lundi 17 octobre 2016

ember-cli-facebook-js-sdk error TypeError: _npmEmberCliFacebookJsSdk.default.init is not a function

When i run the server, I get following error in browser console "TypeError: _npmEmberCliFacebookJsSdk.default.init is not a function"

Following is the code: import FB from 'npm:ember-cli-facebook-js-sdk';

export default { name: 'fb', initialize: function() { return FB.init({ appId: 'My-App-ID', version: 'v2.8', xfbml: true }); } };




Aucun commentaire:

Enregistrer un commentaire