Open KaushikRay opened 8 years ago
Hello Kaushik, Just wondering if you had chance to fix this issue. I am facing a similar issue on my Ionic2 app. Would appreciate if you shed any lights on this.
I solved this issue by copying the force.js and pasting it in app
folder, next to app.ts
. I also renamed the force.js
to force.ts
. Then I could reference it in app.ts
like this:
import * as force from './force';
with the current version it works also with:
import { OAuth, DataService } from 'forcejs';
I am working as a noob on my ionic 2 / ang 2 application. I am trying to set it up to use forcejs auth implementation.
Now I create a basic app following the ionic 2 tutorial here - http://ionicframework.com/docs/v2/getting-started/tutorial/
Now I am trying to integrate my force js implementation based on - http://coenraets.org/blog/2015/10/integrating-ecmascript-6-web-applications-with-salesforce-using-oauth-and-rest/
Now on app initialization I want to login using SF dev creds and Oauth.
I did a forcejs install using
And in my app.ts file I am trying to import same. App.ts -
Now check top of the page for imports
I can see forcejs under node_modules folder but not sure now how to import same.
Please help with same.