TraceKit icon indicating copy to clipboard operation
TraceKit copied to clipboard

TraceKit Report is not exported from package

Open saranRe opened this issue 2 years ago • 3 comments

import * as TraceKit  from 'tracekit';

TraceKit.report.subscribe(tracekitErrorHandler)

I added tracekit in my ts file. I try to run that file, I got error like below

report is not exported by ../../node_modules/tracekit/tracekit.js
80:                 });
81:             };
82:             TraceKit.report.subscribe(tracekitErrorHandler);

saranRe avatar Sep 06 '22 12:09 saranRe

That looks right, if you log out the TraceKit imported object what do you see? I have never used TraceKit.report.subscribe

niemyjski avatar Sep 06 '22 12:09 niemyjski

This issue happens in my typescript file have any idea for this error?

saranRe avatar Sep 09 '22 06:09 saranRe

@saranRe Can you add a test for this, might just need to update the typescript definition

niemyjski avatar Sep 09 '22 13:09 niemyjski