You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added “package.json” to “ngx” folder, similar to what “@ionic-native/barcode-scanner” has.
When trying to build a main project with Cordova plugin I get an error:
[error] Error: The target entry-point "@ionic-native/zebra-printer" has missing dependencies:
@angular/core
@ionic-native/core
When checking “@ionic-native/barcode-scanner” bundle, I see that there is also “bundle.js” file, but I am not sure how to properly generate it from the existing files.
So my question is, what is the correct way to create Ionic5 wrappers to get rid of this “missing dependencies” error?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am trying to create Ionic5 wrapper for Cordova plugin, something similar to “@ionic-native/barcode-scanner”
I did the following:
Cloned https://github.com/danielsogl/awesome-cordova-plugins
Switched to v5 branch
Created
index.ts
file with plugin informationRun
npm run build
to get the following files indist
folder:./ngx/index.js
./ngx/index.d.ts
./ngx/index.metadata.json
./index.js
./index.d.ts
Copied generated files into Cordova plugin, see
https://github.com/a-services/cordova-zebra-printer/tree/master/native
Added “package.json” to “ngx” folder, similar to what “@ionic-native/barcode-scanner” has.
When trying to build a main project with Cordova plugin I get an error:
[error] Error: The target entry-point "@ionic-native/zebra-printer" has missing dependencies:
When checking “@ionic-native/barcode-scanner” bundle, I see that there is also “bundle.js” file, but I am not sure how to properly generate it from the existing files.
So my question is, what is the correct way to create Ionic5 wrappers to get rid of this “missing dependencies” error?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions