capacitor-community / electron

Deploy your Capacitor apps to Linux, Mac, and Windows desktops, with the Electron platform! 🖥️
https://capacitor-community.github.io/electron/
MIT License
318 stars 58 forks source link

fix unable to find modules #273

Open si458 opened 6 months ago

si458 commented 6 months ago

Fixes #262

you dont need to include the 'package.json' in the require.resolve which solves the unable to find xyz, are you sure xyz is installed? message

also fixes if you use @types/ dependencies as they cant be included because they dont have any main

ygarg465 commented 6 months ago

Yes, these messages are pretty annoying in the development workflow