Posted 5 July 2019, 7:47 am EST
The sample which you have provided above is working fine. But when we tried the same sample code in our project it’s not working(Jquery and Wijribbon is undefined). It might be because we are using typed files jquery.d.ts, wijmo.d.ts and GC.Spread.Sheets.d ( added in assets ->wijmo).
Jquery variable is exported in jquery.d.ts. But that comes out to be undefined when we run the application.So, basically typed files are not including properly.
Angular.json setting -
“styles”: [
“projects/fpm/src/styles.scss”,
“projects/lib-proton/src/styles/main.scss”,
“projects/fpm/src/styles/jquery-wijmo.css”,
“projects/fpm/src/styles/jquery.wijmo-pro.all.3.20151.69.min.css”,
“projects/fpm/src/styles/gc.spread.sheets.12.1.1.css”,
“projects/fpm/src/styles/select2.min.css”
],
“scripts”: [
“projects/fpm/src/scripts/gc.spread.sheets.all.12.1.1.min.js”,
“projects/fpm/src/scripts/gc.spread.excelio.12.1.1.min.js”,
“projects/fpm/src/scripts/jquery/jquery.min.js”,
“projects/fpm/src/scripts/jquery-ui/jquery-ui.min.js”,
“projects/fpm/src/scripts/jquery.wijmo-open.all.3.20151.69.js”,
“projects/fpm/src/scripts/jquery.wijmo-pro.all.3.20151.69.js”,
“projects/fpm/src/scripts/licensekey.js”,
“projects/fpm/src/scripts/jquery/select2.full.min.js”
],
Is there any particular setting we need to do or we are missing anything?
Please reply asap.