I created a blank ionic2 project like this:
ionic start ig-angular2-test blank
cd ig-angular2-test
Then I installed igniteui via npm:
npm install @infragistics/ignite-ui-full –save
npm install igniteui-angular2 --save
Now I installed dependencies for igniteui via npm:
npm install jquery-ui-bundle --save
npm install modernizr –save
Now I integrated the sample for IgSplitter - Component ( https://www.igniteui.com/splitter/overview ).
If I try to start the sample with ionic-cli command
ionic serve
I get the error "Cannot find module "jquery".
ionic_igniteui_angular2_project.zip
Hello,
Have you tried including script tags- https://ionicframework.com/docs/developer-resources/app-scripts/#script-tag-include?
Regards,
Deyan Kamburov,
Infragistics
Yes, I tried it with and without script-tag-include. There are different results ...
In my 'home.ts' I have add
import * as $ from "jquery";
because in your sample are references to '$'. Could you please have a look at my sources I attended above?
I also tried to define
declare var $ : any; (instead of import) before declaration of jQuery. But then 'jQuery' will not be found.
If I replace all '$' references in your sample with 'jQuery', another error occures:
core.js:1350 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'prototype' of undefinedTypeError: Cannot read property 'prototype' of undefined at IgSplitterComponent.IgControlBase (igniteui-angular2.umd.js:1387) ...