Question T11907
Visible to All Users

Build error in angular project after upgrade to v1.9.71

created 2 years ago

Since the update to v1.9.71, I am no longer being able to build my project, written in angular v9.

Is there any incompatibility in the newest survejs version?

Code
12:34:43 ERROR in node_modules/survey-angular/survey.angular.d.ts:1113:9 - error TS1131: Property or signature expected. 12:34:43 12:34:43 1113 get expression(): string; 12:34:43 ~~~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1113:13 - error TS1005: ';' expected. 12:34:43 12:34:43 1113 get expression(): string; 12:34:43 ~~~~~~~~~~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1113:25 - error TS1005: ';' expected. 12:34:43 12:34:43 1113 get expression(): string; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1117:17 - error TS1005: ';' expected. 12:34:43 12:34:43 1117 canRun(): boolean; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1124:19 - error TS1005: ',' expected. 12:34:43 12:34:43 1124 run(values: HashTable<any>, properties: HashTable<any>): any; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1124:35 - error TS1109: Expression expected. 12:34:43 12:34:43 1124 run(values: HashTable<any>, properties: HashTable<any>): any; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1124:47 - error TS1005: ',' expected. 12:34:43 12:34:43 1124 run(values: HashTable<any>, properties: HashTable<any>): any; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1124:63 - error TS1005: '(' expected. 12:34:43 12:34:43 1124 run(values: HashTable<any>, properties: HashTable<any>): any; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1124:64 - error TS1005: ',' expected. 12:34:43 12:34:43 1124 run(values: HashTable<any>, properties: HashTable<any>): any; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1124:69 - error TS1005: ')' expected. 12:34:43 12:34:43 1124 run(values: HashTable<any>, properties: HashTable<any>): any; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1128:23 - error TS1005: ';' expected. 12:34:43 12:34:43 1128 getVariables(): Array<string>; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1128:38 - error TS1005: '(' expected. 12:34:43 12:34:43 1128 getVariables(): Array<string>; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1132:22 - error TS1005: ';' expected. 12:34:43 12:34:43 1132 hasFunction(): boolean; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:1181:1 - error TS1128: Declaration or statement expected. 12:34:43 12:34:43 1181 } 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10226:9 - error TS1131: Property or signature expected. 12:34:43 12:34:43 10226 get isCollapsed(): boolean; 12:34:43 ~~~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10226:13 - error TS1005: ';' expected. 12:34:43 12:34:43 10226 get isCollapsed(): boolean; 12:34:43 ~~~~~~~~~~~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10226:26 - error TS1005: ';' expected. 12:34:43 12:34:43 10226 get isCollapsed(): boolean; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10227:13 - error TS1005: ';' expected. 12:34:43 12:34:43 10227 get isExpanded(): boolean; 12:34:43 ~~~~~~~~~~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10227:25 - error TS1005: ';' expected. 12:34:43 12:34:43 10227 get isExpanded(): boolean; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10228:17 - error TS1005: ';' expected. 12:34:43 12:34:43 10228 expand(): void; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10228:23 - error TS1109: Expression expected. 12:34:43 12:34:43 10228 expand(): void; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10229:19 - error TS1005: ';' expected. 12:34:43 12:34:43 10229 collapse(): void; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10229:25 - error TS1109: Expression expected. 12:34:43 12:34:43 10229 collapse(): void; 12:34:43 ~ 12:34:43 node_modules/survey-angular/survey.angular.d.ts:10314:1 - error TS1128: Declaration or statement expected. 12:34:43 12:34:43 10314 } 12:34:43 ~

Best regards, Vitor.

Answers approved by surveyjs Support

created 2 years ago

Hello Vitor,
Please check to make sure you're using TypeScript v4.2 and newer. We've recently update typings in the survey-angular library. Therefore, a newer version of TypeScript is required.

Please let me know if this helps.

    Comments (3)

      Hi Jane, I tried to upgrade to TypeScript v4.2 but there seems to be an incompatibility with Angular v9.

      Guess I'll stick with surveyjs v1.9.70 for now, and plan for an upgrade later.

      Thanks a lot.

        Hello,

        Thank you for the information. Please feel free to contact us in case of any further questions.

        Thanks, Serge
        SurveyJS Team

          Hello Vitor,
          With the most recent version (v1.9.74), the survey-angular library should be compiled without any errors.

          Our developers fixed the issue: Angular - Build errors in survey-angular library. I've just tested the survey-angular library with Angular 8 and TypeScript 3.5.3 and confirmed that everything runs correctly.
          Please upgrade the SurveyJS library to the latest version v1.9.74 and test how the survey-angular performs in your Angular 10 application.

          Should you have any questions or require further assistance, we are here to help.