Can't resolve 'worker_threads' in CRA
nxtexe opened this issue · comments
Nathan Johnson commented
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.
Thomas Steiner commented
This looks like a local tooling issue indeed. The publint
tool is happy, too.