Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when importing SmsLog #3

Open
cedricbonhomme opened this issue Jun 6, 2019 · 2 comments
Open

Problem when importing SmsLog #3

cedricbonhomme opened this issue Jun 6, 2019 · 2 comments

Comments

@cedricbonhomme
Copy link

I am trying to import SmsLog in app.module.ts:

import { SmsLog } from '@ionic-native/sms-log/ngx';

Of course it does not work since I haven't installed it like I did for CallLog (npm install @ionic-native/call-log).
Is there another way to install it?

@cedricbonhomme
Copy link
Author

@cedricbonhomme
Copy link
Author

I added the following in the package.json file:

"postinstall": "cp -R node_modules/cordova-plugin-smslog/ionic/sms-log node_modules/@ionic-native/"

Then when I import the library:

import { SmsLog } from '@ionic-native/sms-log';

Im my application there is the error:

Runtime Error
Object(...) is not a function
Stack
SmsLogOriginal<@http:https://localhost:8101/build/vendor.js:140948:76
...
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant