cstimer icon indicating copy to clipboard operation
cstimer copied to clipboard

cstimer_module dependent on jquery not works in react

Open xkalf opened this issue 5 months ago • 1 comments

im making timer app using react when i use cstimer_module getImage is fine but when i try to getScramble function

cstimer_module.js?v=3148f72e:642 Uncaught (in promise) ReferenceError: $ is not defined
    at cstimer_module.js?v=3148f72e:642:7
    at execBoth (cstimer_module.js?v=3148f72e:624:35)
    at execMain (cstimer_module.js?v=3148f72e:630:14)
    at ../../node_modules/.pnpm/[email protected]/node_modules/cstimer_module/cstimer_module.js (cstimer_module.js?v=3148f72e:641:5)
    at __require2 (chunk-PR4QN5HX.js?v=3148f72e:14:50)
    at cstimer_module.js?v=3148f72e:10220:16

xkalf avatar Aug 15 '25 07:08 xkalf

If I remember correctly, cstimer_module cannot be directly embedded in the browser as js, and should be used in web worker.

cs0x7f avatar Aug 15 '25 08:08 cs0x7f