Question T6593
Visible to All Users

Survey Analytics Tabulator Angular CodeSandbox Example does not build

created 4 years ago

https://codesandbox.io/s/6z322

Infinite sadness.

https://codesandbox.io/s/surveyjs-angular-forked-ckr12 <-- even if one fixes the obvious name space issue, it still does not build with:

Call Stack
ERROR TypeError: SurveyAnalytics.Tabulator is not a constructor

Answers approved by surveyjs Support

created 4 years ago

Hello,

For the unknown reason some imports in this sample were generated wrong.
You need to add the "tabulator-tables" dependency and add the following imports:

JavaScript
import * as SurveyAnalyticsTabulator from "survey-analytics/survey.analytics.tabulator"; import "survey-analytics/survey.analytics.tabulator.css"; import "tabulator-tables/dist/css/tabulator.css"; `` Thank you for pointing this out. We'll fix this sample and update our site. Thanks, Serge SurveyJS Team
    Show previous comments (1)
    DK DK
    Dmitry Kurmanov 4 years ago

      we've fixed the problem. Fix will be available in the next minor release

        thanks!

          You are welcome!

          Other Answers

          created 4 years ago

          n/m I solved it with answers here: https://github.com/surveyjs/survey-analytics/issues/85