-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web-worker type export #1951
Comments
Hi @henrik-d, I have attempted to reproduce the error you are seeing but have been unable to so far. Can I first confirm that you are definitely using bugsnag/web-worker within a web worker and not in another part of your app? Can I also confirm how you are installing and using BugSnag? I.e: what commands did you run and are you using an Any reproduction steps you can provide would be really useful. I think it would be especially handy to see your tsconfig.json file, but if you’re willing to share the files where you are attempting to configure and use BugSnag that would be great. You can write into support@bugsnag.com if there is anything you do not want to share on this public thread. |
Hey @mclack I'm using a custom logger class to report errors to bugsnag. I use this class inside my ServiceWorker and in my regular application. Therefore I'm using a dynamic import to import bugsnag.
This is my Logger-class:
And this is my tsconfig.json (generated by vite). The
My proposal would be to change in @bugsnag/web-worker/types/notifier.ts |
Hi @henrik-d, thanks for that extra info. We’ve realised the issue here is that the file is not currently named as a We will rename this file and schedule the update for our next release. In the meantime, you can either rename the file to end in Thank you for bringing this to our attention. We will post an update on this thread once the fix has been deployed. |
@mclack Hey there! The issue seems to be persistent for me. Is it something expected? |
Hi @Danetag We haven't yet deployed any changes which cover this. Have you attempted the solutions as outlined above? I.e:
|
Hi @mclack looks like this is still an issue in v8? Are there any blockers in getting this addressed? Thanks for your efforts 🙏 |
Hi @tizmagik This issue is still on our backlog. We will be sure to get round to it when priorities allow and update this thread with more information. |
Describe the bug
I'm using vite and get the following error in my typescript react project:
./node_modules/@bugsnag/web-worker/types/notifier.ts(17,10): error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
Environment
The text was updated successfully, but these errors were encountered: