marker-io / browser-sdk

Marker.io browser SDK
MIT License
8 stars 8 forks source link

widget.setReporter is not a function #12

Closed Santoshgoodworklabs closed 2 years ago

Santoshgoodworklabs commented 2 years ago

After initialization when i am trying to execute setReporter getting this error.

image

olivierkaisin commented 2 years ago

Hi @Santoshgoodworklabs,

Since markerSDK.loadWidget({ ... }) returns a Promise, can you confirm you are calling .setReporter() on the resolved value?

Here is the example provided in our readme:

import markerSDK from '@marker.io/browser';

const widget = await markerSDK.loadWidget({ destination: 'abcd1234567890' });

Let me know 🚀