rollup-plugin-comlink icon indicating copy to clipboard operation
rollup-plugin-comlink copied to clipboard

Unable to make this work with TypeScript

Open agviegas opened this issue 4 years ago • 0 comments

Hi!

First of all, thank you for this amazing library.

We are trying to use this in some of our projects, and although it works seamlessly in JavaScript, we were not able to do the same in TypeScript. Here we have a super minimal "hello world" example trying to reproduce what you describe in the docs, but with no success. When we try bundle, it throws the following error:

(plugin rpt2) Error: comlink:C:/Users/anton/Desktop/rollup-plugin-comlink-typescript/worker.ts(2,26): semantic error TS2307: Cannot find module 'omt:C:\Users\anton\Desktop\rollup-plugin-comlink-typescript\worker.ts?comlink' or its cor
responding type declarations.

Are we missing something?

Thank you in advance!

agviegas avatar Sep 17 '21 14:09 agviegas