David Dal Busco

Results 322 comments of David Dal Busco

> await import is incompatible with the ServiceWorker script. I randomly had a look at the [line](https://github.com/dfinity/agent-js/blob/main/packages/agent/src/agent/http/index.ts#L1106) of code you are referencing. Are you bundling your SW using ES modules?

> Yes, I used the ES module for packaging. Maybe it's specific to service worker? We do use the agent in web workers in Oisy for example and we do...

> import.meta.url Oh yeah we had that issue in Oisy too - i.e. `import.meta` is incompatible with web workers. To overcome the issue we pass the variable to the web...

Are you using `use-auth-client`? The only reference in src I find about `import.meta` is in its [demo](https://github.com/dfinity/agent-js/blob/21cf4700eff1de7f6f15304b758a16e5881afca3/packages/use-auth-client/examples/auth-demo/src/auth-demo-frontend/vite.config.js#L38). That would explain why we do not face the issue in Oisy.

In which of your repo are you facing the issue? Can I give it a try?

I spent last hour trying to reproduce the issue with your repo, but I'm having trouble loading the SW. I try to mock and remove some data to achieve the...

Thanks, @zensh, for the repo. I can reproduce the issue as well and couldn't find any configuration option to resolve it. While the issue is not addressed yet, I may...

Can you share a code snippet for which you would expect documentation for parameters to be generated? That way, I can give it a try and help figure it out.

Thanks! For your original question, it's currently expected behavior. Without documentation, the parameters are indeed not outputted. However, if I add some comments, they will be included. ``` /** *...