Open draggie opened 3 days ago
Thanks, @draggie . Agreed, if a module isn’t declared, it shouldn’t be required unless used by default. Wrapping in a try/catch should handle it. @adamTrz , could you please look into it? @Nataliagros , please include it in the tracker. Thanks!
While using the library I have noticed that the release build on android platform is failing. My configuration does not support using the Mapbox for now and I do not reference it anywhere, although it seems to expect for this package
export default require('@openmobilehub/maps-plugin-mapbox');
that is in_optionalMapboxPlugin.ts
to cause such error:Since I assume there is no need to actually have all plugins configured (as they are called 'optional') I propose to modify those both optional files in such way, to solve the error: