roblav96 / nativescript-telephony

A Nativescript plugin to get the device's SIM data (carrier name, mcc mnc, country code, telephonenumber, etc)
Other
22 stars 9 forks source link

Plugin not working with Webpack/AoT #3

Closed abhayastudios closed 7 years ago

abhayastudios commented 7 years ago

I just tried to bundle my project with webpack as described here and discovered that the telephony plugin is not working correctly, I guess due to AoT:

ERROR in ./pages/login.ts
Module not found: Error: Can't resolve 'nativescript-telephony' in '/Users/joni/projects/testjoni/app/pages'
 @ ./pages/login.ts 19:10-43
 @ ./app.module.ngfactory.ts
 @ ./main.aot.ts

Any idea what might be the issue?

roblav96 commented 7 years ago

Not too sure. I've never used nativescript with webpack before. I'll have to look into it when I get a chance.

abhayastudios commented 7 years ago

I am not too familiar with it myself either, what I understand from this explanation is that you should include the *.metadata.json with the plugin.