Closed metaturso closed 2 years ago
@RomanTsukanov Please take a look.
Thank you, Andrew
Hi @metaturso,
I fixed the issues in the docs: https://github.com/surveyjs/survey-library/pull/4328. Thanks for bringing them to our attention.
As for the TS issues, @andrewtelnov will look into them a bit later.
@metaturso @RomanTsukanov I have fixed our d.ts generator. Indeed it did not generate vue d.ts correctly after we change our webpack entries for vue, it stopped work. It will be fine in v1.9.30.
Thank you, Andrew
Thanks so much for looking into this and fixing the missing definition so quickly. I'm looking forward to v1.9.30!
@metaturso It is better to use v1.9.31, since there were some issues with react typing in v1.9.30 :) that is why we made v1.9.31 on the next day after releasing 1.9.30.
Thank you, Andrew
Hi @andrewtelnov, I'm so sorry to come back to this with bad news, but I can't confirm this has been fixed in v1.9.32 with survey-ui
, or survey-vue-ui
as originally reported.
Have a look at this, SurveyVue.Survey
is still undefined, even in the official quickstart repository.
Oddly enough, the survey seems to work when loading the page.
However, this isn't an acceptable solution because I'm looking to integrate this library into a Typescript project, and undefined types are problematic in Typescript:
git clone https://github.com/surveyjs/surveyjs_vue_quickstart.git
npm i
SurveyVue.Survey
is undefinedSurvey
type can't be imported because it's undefined.Does this project support Typescript at all, or should I be looking at alternatives?
@metaturso I have installed "npm i survey-vue-ui" and in file "survey-vue-ui.d.ts" I have the following class on one line: 341
export declare class Survey extends BaseVue {
constructor();
survey: SurveyModel;
model: SurveyModel;
processedCompletedHtmlValue: string;
updater: number;
get pageId(): string;
get navId(): string;
protected getModel(): Base;
get vueSurvey(): SurveyModel;
onPropertyChanged(value: string, oldValue: string): void;
forceUpdate(): void;
protected onMounted(): void;
beforeDestroy(): void;
get hasTitle(): boolean;
get hasCompletedPage(): boolean;
get css(): any;
getProcessedCompletedHtml(): string;
getCompletedStateClasses(): any;
start(): void;
doTrySaveAgain(): void;
}
Thank you, Andrew
@andrewtelnov thanks you so much for the correction, chap! I can confirm that using survey-vue@1.9.32
works as intended!
I should've followed advice you posted on my other ticket instead of checking out the quick start repo.
I'll close this ticket now! Thank you again.
Are you requesting a feature, reporting a bug or asking a question?
Reporting a possible bug with
survey-vue-ui
and the VueJS getting started project.This report is vaguely similar to #4036, albeit it can't be patched by using a fully qualified type.
What is the current behavior?
This code taken from the example:
Produces the following error:
I've installed packages as suggested by the documentation, i.e.:
What is the expected behavior?
survey-core
API 1.19.28How would you reproduce the current behavior (if this is a bug)?
lang="ts"
to the<script>
tag in the Vue SFCSurvey
component fromsurvey-vue-ui
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your