I got this horrible “ReferenceError: capacitorExports is not defined” error while running the tests in my Ionic/Angular/Capacitor project after adding a new Plugin. For luck I was able to find a workaround this problem and keep the test running.
Stop messing with your console.log lines when using a wrapper logger function. Improve your debugging tools and add correct prefixes!
Ionic livereload option is great but there are special situations when you need to detect when an Ionic App is running on device with the livereload flag. For example when you need to fetch data from a REST API and you have to use a PROXY so you do not get any Access-Control-Allow-Origin error.
How to fix the Module not found error while using the –prod flag
This is a really stupid error that can happens when you update your ionic dependencies (Never touch a running system!!! but well sometimes we have to). It happens because the way Ionics build the scripts have change along the way and your project does not find all the generated javascript, Probably the file missing is so as for just be
Ionic uses different visual styles for different elements like icons for each platform (for example in iOS the navbar title is centered while in Android it goes at the left), the idea is to get a much “native” feeling in each platform but sometimes you could need (or required to) use the same visual style for all platforms, for example
This will work for Ionic 2.x and Ionic 3.x and will make a folder structure ready for deploy.
It is a little bit tricky but we CAN use PDJ.js with Ionic!