ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

jQuery is not defined

Open chandumunna opened this issue 10 years ago • 3 comments

jquery is not defined when i installed these and steps..

npm install jquery --save npm install jquery-ui --save npm install @types/jquery --save-dev npm install @types/jqueryui --save-dev

and in page1.ts file

import $ from 'jquery';

can i use datepicker in .ts file there is shown error

jQuery is not defined......

please help me ... thanks in advance...

chandumunna avatar Oct 07 '16 05:10 chandumunna

try import * as $ from 'jquery'

aggarwalankush avatar Oct 07 '16 06:10 aggarwalankush

it doesn't worked... if it write in .ts file getting rollup.js file error as namespace not exported

chandumunna avatar Oct 07 '16 06:10 chandumunna

Hello, thanks for opening an issue with us! Closing this issue as a duplicate of https://github.com/driftyco/ionic/issues/8564.

jgw96 avatar Oct 07 '16 14:10 jgw96