maithili
Posts: 10
Joined: Tue Nov 24, 2020 12:36 pm

importing npm module app-datepicker

Hi,
Is it possible to import npm module app-datepicker to the app builder
https://www.npmjs.com/package/app-datepicker

I went to AppSettings>>NPM Modules and put app-datepicker, verionsion4.5.3

but if it test after that - getting this error
Error: src/app/scripts/apperyio/appclient/appclient_generic_wrapper_service.ts:2:8 - error TS1259: Module '"/tmp/616802/723273/ionic/node_modules/@types/lodash/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
2 import _ from "lodash";
~
node_modules/@types/lodash/index.d.ts:27:1
27 export = _;

NOW if i remove the npm entry. it still gives the error.. cant remove this error.

Thanks a lot
maithili

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

Re: importing npm module app-datepicker

Hello,

Sure, you can add it to your app.
To learn how to add native device functionality, please check the following page:
https://docs.appery.io/docs/ionic-4-sol ... from-ionic.
We also have a detailed tutorial that can be useful in your case: https://docs.appery.io/docs/ionic-5-cal ... n-tutorial.

Return to “Issues”