qlik-demo-team / qdt-components

React Components to be used with Angular 10, React 16 and Vue 2. Connects with the Capability API and Engine API.
MIT License
92 stars 50 forks source link

Angular 6: Unhandled promise rejection TypeError: s.exportData is not a function #44

Closed krishnanandsivaraj closed 5 years ago

krishnanandsivaraj commented 5 years ago

I have updated my npm to the latest (1.3.8) and tried exportdata. I can see the button from the UI and on click I face errors shown below. Can you help?

Unhandled promise rejection TypeError: s.exportData is not a function
    at e.<anonymous> (qdt-components.js:11)
    at r (qdt-components.js:11)
    at Generator._invoke (qdt-components.js:11)
    at Generator.t.(anonymous function) [as next] (http://localhost:4200/vendor.js:59726:36236)
    at r (qdt-components.js:1)
    at qdt-components.js:1
    at qdt-components.js:11
    at qdt-components.js:11
    at MutationObserver.s (qdt-components.js:11)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388)

This is my TS object

discoveryData = {
            type: 'QdtViz',
            props: {
                type: 'barchart', id: '###', height: '300px',exportData:true,eportDataOptions:{ format: 'CSV_T', state: 'P' },

            },
            };

This is my html

 <div class="panel-body viz-panel-body">
                                                <qdt-component [Component]="discoveryData.type" [props]="discoveryData.props"></qdt-component>
                                    </div>
krishnanandsivaraj commented 5 years ago

Any updates people?

yianni-ververis commented 5 years ago

You are using an old version. Upgrade to the latest. Here is a the working example of Angular 6 and gdt-components@1.3.13 https://webapps.qlik.com/qdt-components/angular/index.html#/embed-object