zingtouch icon indicating copy to clipboard operation
zingtouch copied to clipboard

zingtouch is not working with Electronjs

Open MonkeyTime opened this issue 2 years ago • 2 comments

VM4 sandbox_bundle:2 Error: module not found: zingtouch at preloadRequire (VM4 sandbox_bundle:2:82448) at :3:19 at runPreloadScript (VM4 sandbox_bundle:2:83288) at VM4 sandbox_bundle:2:83547 at VM4 sandbox_bundle:2:83702 at _electron_webpack_init (VM4 sandbox_bundle:2:83706) at VM4 sandbox_bundle:2:83829

MonkeyTime avatar Oct 12 '22 04:10 MonkeyTime

trying create a *.d.ts with "declare module 'zingtouch';" but not working

MonkeyTime avatar Oct 12 '22 04:10 MonkeyTime

Hi there!

According to this blog post, add this as a placeholder for the zingtouch module in the *.d.ts file:

declare module 'zingtouch' {
  var main: any
  export = main
}

I personally tested this and it clears the "module not found: zingtouch" error.

If you need more assistance, feel free to reach out. Please attach a demo (through jsfiddle, codesandbox, or any js playground) for me to take a look at.

Best, ZingSoft Team

jeanettephung avatar Oct 12 '22 18:10 jeanettephung