Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zingtouch is not working with Electronjs #101

Open
MonkeyTime opened this issue Oct 12, 2022 · 2 comments
Open

zingtouch is not working with Electronjs #101

MonkeyTime opened this issue Oct 12, 2022 · 2 comments

Comments

@MonkeyTime
Copy link

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
Copy link
Author

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

@jeanettephung
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants