Comments (9)
Use this instead under packages
:
'ng2-facebook-sdk': {
defaultExtension: 'js',
main: './dist/index.js'
}
from ngx-facebook.
Hi ihadeed,
thanks but that didn't solve the issue. So probably it should be reopened.
Same problem.
from ngx-facebook.
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.
Hi ihadeed,
thanks: that solved the issue.
Simone
from ngx-facebook.
Thanks for your feedback! Glad you got it working.
from ngx-facebook.
'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.
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.
@AsmaGargouri this is common SystemJS knowledge. It's not a quirk with this module.
from ngx-facebook.
Oh ! My bad. Thank you.
from ngx-facebook.
Related Issues (20)
- "Unexpected token import" error with Angular Universal HOT 5
- fb-page does not display inside *ngIf or ng-template HOT 1
- How to use fb-video in lazy loaded modules? HOT 4
- Add support for new Messenger Customer Chat SDK HOT 5
- Maintenance?
- How to make fb-video mobile responsive ? HOT 2
- Facebook Like button not showing on browser
- How to pause particular fb-video in for loop ?
- I got an issue with Angular 7 with the Frameworks: Inonic 4/Cordova
- Modifying the attributes after the component is loaded does not reload the component
- Prod mod does not work load services
- Post to user wall
- Not compiled after Angular 9.0.0-next.11 HOT 16
- Posts not rendered HOT 4
- fb_Page NOT WORKING with URL as variable HOT 3
- Clicking on cancel icon instead of continue with ... in dialog login page automatically login in
- wrapper not working HOT 2
- not able to focus on current facebook login windows popup
- share dialog close
- Add support for Angular 16 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-facebook.