When installing a module from npm and building, the apiversion fails even if the apiversion is correct. This is because the apiversion passed in from the SDK is a string, whereas the version from the version we get from the module is a number. We should parseInt both of these before using them.
1. In the root of your titanium project alongside tiapp.xml, run npm init -y and then npm i @titanium/imagefactory
2. Add <module>ti.imagefactory</module> to your modules section in the tiapp
3. Build for Android or iOS (iOS will require
TIMOB-27203 to be fixed first)
Build errors with [ERROR] Found incompatible Titanium Modules:
No error as everything is valid