Question T15219
Visible to All Users

Problem in displaying form library - Vuejs

created a year ago (modified a year ago)

Hi Support Team,

I am using these libraries in the non modular Vuejs application. We have to display the form library and survey creator in the application. The Vue version used is 2.6.12.

<link rel='stylesheet' href='https://unpkg.com/survey-vue@1.9.113/defaultV2.min.css'>
<link rel='stylesheet' href='https://unpkg.com/survey-core@1.9.113/defaultV2.css'>
<link rel='stylesheet' href='https://unpkg.com/survey-creator-core@1.9.113/survey-creator-core.css'>
<script src='https://unpkg.com/knockout@3.5.1/build/output/knockout-latest.js'></script>
<script src='https://unpkg.com/survey-vue@1.9.113/survey.vue.min.js'></script>
<script src='https://unpkg.com/survey-vue@1.9.113/themes/index.min.js'></script>
<script src='https://unpkg.com/survey-core@1.9.113/survey.core.min.js'></script>
<script src='https://unpkg.com/survey-core@1.9.113/survey.i18n.min.js'></script>
<script src='https://unpkg.com/survey-core@1.9.113/themes/index.min.js'></script>
<script src='https://unpkg.com/survey-knockout-ui@1.9.113/survey-knockout-ui.min.js'></script>
<script src='https://unpkg.com/survey-creator-core@1.9.113/survey-creator-core.min.js'></script>
<script src='https://unpkg.com/survey-creator-core@1.9.113/survey-creator-core.i18n.min.js'></script>
<script src='https://unpkg.com/survey-creator-knockout@1.9.113/survey-creator-knockout.min.js'></script>

The surveyjs creator is displayed properly. When we try to display the survey questions in form library, we are getting these errors. Please can you give directions to resolve the issue? Please let me know if you need more information.

TypeError: Cannot read properties of undefined (reading 'description')
at a.Pl (survey.vue.min.js:17:29308)
at e._render (Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:35481)
at a.r (Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:68170)
at fn.get (Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:26768)
at new fn (Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:26686)
at Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:68184
at wn.$mount (Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:68331)
at wn.$mount (Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:93549)
at init (Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:19508)
at Vue_V2.6.12.min.js?ver=5.00.00.07967181595598272:6:56519

Uncaught TypeError: e.getType is not a function
at t.getPage (survey.core.min.js:6:247132)
at t.get (survey.core.min.js:6:262242)
at t.focus (survey.core.min.js:6:283369)
at t.focusFirstQuestion (survey.core.min.js:6:832134)
at t.scrollToTopOnPageChange (survey.core.min.js:6:607713)
at survey.core.min.js:6:638267

Answers approved by surveyjs Support

created a year ago

Hello Krishnan,
A survey creator for Vue is built on yop of a Knockout library. Therefore, in your Vue app, you need to use the SurveyJS Library for Knockout: https://surveyjs.io/form-library/documentation/get-started-knockout.

Please update your Form Library integration. Let me know if it helps.