GoogleChromeLabs / wasm-feature-detect

A small library to detect which features of WebAssembly are supported.

Home Page:https://webassembly.org/roadmap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't resolve 'worker_threads' in CRA

nxtexe opened this issue · comments

I am trying to use OpenCV.js loader to use OpenCV in my react-app. The loader relies on wasm-feature-detect to setup the emscripten generated files (js and wasm). When I try to require("loader.js"); I get the error Can't resolve 'worker_threads'. I am using typescript create react app template. Any help is greatly appreaciated.

This looks like a local tooling issue indeed. The publint tool is happy, too.