comlink icon indicating copy to clipboard operation
comlink copied to clipboard

How to implement comlink in Next.js 14 App Route

Open programmersEmperor opened this issue 1 year ago • 3 comments

I would like to use comlink in my current Next.js 14 project, but I don't know what is the proper way for doing it, I would be grateful to see an example for that

programmersEmperor avatar May 11 '24 01:05 programmersEmperor

Nothing additional should be needed just to have access to web workers in Next.JS at least not via webpack. If you are using turbopack dev --turbo I think it is one of their features that are not yet supported.

riqts avatar Sep 20 '24 09:09 riqts

Nothing additional should be needed just to have access to web workers in Next.JS at least not via webpack. If you are using turbopack dev --turbo I think it is one of their features that are not yet supported.

Could give me an example? Like a repo or something

programmersEmperor avatar Sep 23 '24 23:09 programmersEmperor

I've created Next.js 15 Comlink examples at https://github.com/subwaymatch/nextjs-comlink-examples.

subwaymatch avatar Apr 17 '25 03:04 subwaymatch