surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
899 stars 370 forks source link

Survey Creator Angular 1.9.82 and 1.9.83 seems to have broken imports #3993

Closed Akkora closed 1 year ago

Akkora commented 1 year ago

Are you requesting a feature, reporting a bug or ask a question?

Bug

What is the current behavior?

After upgrading to version 1.9.82 (and also 1.9.83) the typescript build is failing, while importing the SurveyJS Creator package.

Broken Imports

Error: node_modules/survey-creator-angular/custom-questions/color.component.d.ts:2:10 - error TS2724: '"survey-creator-core"' has no exported member named 'QuestionColorModel'. Did you mean 'QuestionConvertMode'?

2 import { QuestionColorModel } from "survey-creator-core";
           ~~~~~~~~~~~~~~~~~~

  node_modules/survey-creator-core/survey-creator-core.d.ts:908:17
    908     export enum QuestionConvertMode {
                        ~~~~~~~~~~~~~~~~~~~
    'QuestionConvertMode' is declared here.

Error: node_modules/survey-creator-angular/custom-questions/spin-editor.component.d.ts:2:10 - error TS2305: Module '"survey-creator-core"' has no exported member 'QuestionSpinEditorModel'.

2 import { QuestionSpinEditorModel } from "survey-creator-core";
Akkora commented 1 year ago

Version 1.9.84 fixed that issue