zingchart/zingtouch

zingtouch is not working with Electronjs

MonkeyTime opened this issue · 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

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

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