Ionic3+ lazy loading with plugins module


#1

i use ion-multi-picker and now change my project to lazy loading.
it works fine on desktop but get error when i build with --prod.

  1. import MultiPickerModule in somepage.module.ts works fine.but cant build with --prod
    like this :
Error: Template parse errors: Can't bind to 'multiPickerColumns' since it isn't a known property of 'ion-multi-picker'.
 1. If 'ion-multi-picker' is an Angular component and it has 'multiPickerColumns' input,  then verify that it is part of this module.
 2. If 'ion-multi-picker' is a Web Component then add  'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
 3. To allow  any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

2.get error when i import in Appmodule.ts.

Cordova CLI: 6.5.0
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.7
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.10.0
Xcode version: Xcode 8.2.1 Build version 8C1002

#2

where can i import plugins module ?


#3

Plug the plugin individually into a ngmodule and then load it in a lazy ngmodule import


#4

but cant build with prod mode. i move page from lazyload which used this plugin.


#5

Hello HonLuk,
I’m getting the same problem when building with --prod
Did you resolve the error somehow?
Thanks
Pirat


#6

Hello,

you repley to a 1 year old post. Post your failure message and related code, so someone has maybe a good advice foer you.

Best regards, anna-liebt