Git Product home page Git Product logo

Comments (9)

ihadeed avatar ihadeed commented on June 14, 2024

Use this instead under packages:

      'ng2-facebook-sdk': {
        defaultExtension: 'js',
        main: './dist/index.js'
      }

from ngx-facebook.

simonecaf avatar simonecaf commented on June 14, 2024

Hi ihadeed,
thanks but that didn't solve the issue. So probably it should be reopened.

Same problem.

from ngx-facebook.

ihadeed avatar ihadeed commented on June 14, 2024

How are you importing the provider from the npm package?

If you are importing from ng2-facebook-sdk/dist please change that to ng2-facebook-sdk

from ngx-facebook.

simonecaf avatar simonecaf commented on June 14, 2024

Hi ihadeed,
thanks: that solved the issue.

Simone

from ngx-facebook.

ihadeed avatar ihadeed commented on June 14, 2024

Thanks for your feedback! Glad you got it working.

from ngx-facebook.

gauravv7 avatar gauravv7 commented on June 14, 2024

'ng2-facebook-sdk/dist': 'npm:ng2-facebook-sdk/dist/ng2-facebook-sdk.js', // mapping in system-config file
packages: {
....
'ng2-facebook-sdk/dist': {
defaultExtension: 'js'
}
} // in system-config file

then all the imports works as given in the docs, works for me

from ngx-facebook.

AsmaGargouri avatar AsmaGargouri commented on June 14, 2024

Thanks @ihadeed
Using :

map: {
  ...
 'ng2-facebook-sdk': 'npm:ng2-facebook-sdk'
},

and

  'ng2-facebook-sdk': {
        defaultExtension: 'js',
        main: './dist/index.js'
      }

in jsystems.config.js solved my issue. Why is it not mentionned in the Read me althought?

from ngx-facebook.

ihadeed avatar ihadeed commented on June 14, 2024

@AsmaGargouri this is common SystemJS knowledge. It's not a quirk with this module.

from ngx-facebook.

AsmaGargouri avatar AsmaGargouri commented on June 14, 2024

Oh ! My bad. Thank you.

from ngx-facebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.