lmcarreiro / ui5-typescript-example

a Master-Detail demo app (the same available in SAPUI5/OpenUI5 SDK) using TypeScript with npm ui5ts package
25 stars 7 forks source link

Build Issues -jQuery/index.d.ts and sap.d.ts #2

Open kiruja opened 6 years ago

kiruja commented 6 years ago

I am getting below issues with jQuery/index.d.ts and sap.d.ts

I am the steps given in the Readme were performed but when I build the app using Mac in Visual Studio Code (Command+ Shift +B ) it is throwing these errors.

Thanks for your help.

[10:40:48 AM] Starting compilation in watch mode...

node_modules/@types/jquery/index.d.ts:117:5 - error TS2717: Subsequent property declarations must have the same type. Property 'support' must be of type 'JQuerySupport', but here hastype 'PlainObject'.

117 support: JQuery.PlainObject;


node_modules/ui5ts/ui5-types/1.48/sap.d.ts:94179:48 - error TS2304: Cannot find name 'IterableIterator'.

94179                     protected cellGenerator(): IterableIterator<any>;

node_modules/ui5ts/ui5-types/1.48/sap.d.ts:94185:50 - error TS2304: Cannot find name 'IterableIterator'.

94185 protected columnGenerator(): IterableIterator;


node_modules/ui5ts/ui5-types/1.48/sap.d.ts:94262:47 - error TS2304: Cannot find name 'IterableIterator'.

94262                     protected rowGenerator(): IterableIterator<any>;

[10:40:51 AM] Found 4 errors. Watching for file changes.

theREALdebater commented 5 years ago

When attempting npm build, I am getting a very similar message.

node_modules/ui5ts/ui5-types/1.48/sap.d.ts:94179:48 - error TS2304: Cannot find name 'IterableIterator'.

I am currently using UI5 v1.65.1, which I suspect may be why this is going wrong. My simple app works when I use npm start.