MyScript / iinkTS

Other
52 stars 5 forks source link

Module not found: Error: Can't resolve 'worker_threads' #6

Open upender7270 opened 1 week ago

upender7270 commented 1 week ago

I found this a wonderful project. I have integrated it into the react project but I am getting below-warning

WARNING in ../../node_modules/iink-ts/dist/iink.esm.js 1:76399-76431
Module not found: Error: Can't resolve 'worker_threads' 

I am using the version 2.0.1

leJsboureau commented 4 days ago

Hi, If I understood correctly this warning is not blocking. We assume that it is only compatible with up-to-date browsers. This is why we did not put polyfill for web workers. Do you see a “ping” type message passing through the websocket connection? Does this warning prevent the application from working? Thank you for your interest we will try to improve this point.