zingtouch
zingtouch copied to clipboard
zingtouch is not working with Electronjs
VM4 sandbox_bundle:2 Error: module not found: zingtouch
at preloadRequire (VM4 sandbox_bundle:2:82448)
at
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