ionic-image-loader
ionic-image-loader copied to clipboard
Ionic 4 - plans for compatibility
Are there any plans to make Ionic Image Loader compatible with Ionic 4?
Currently it can't be used with Ionic 4 because of error:
ERROR in node_modules/ionic-image-loader/dist/providers/image-loader.d.ts(3,26): error TS2307: Cannot find module 'ionic-angular'.
Running into the same problem. Tried implementing it,got stuck along the way.
+1
+1
Would be great
In the works, please be patient :)
Sweet! Thnx @madoBaker
Is the v4 branch the working branch for this? Can we help with some pull requests?
Is the v4 branch the working branch for this? Can we help with some pull requests?
Correct, and PR's are greatly appreciated!
+1
Still not working on Ionic 4
ERROR in node_modules/ionic-image-loader/dist/providers/image-loader.d.ts(3,26): error TS2307: Cannot find module 'ionic-angular'.
for me it worked using the beta version: npm i -S ionic-image-loader@beta
+1 Still not working need it urgently!! :(
still not working on ionic 4
Using [email protected] and @ionic-native/[email protected] now and it works.
+1 Still not natively working on ionic 4 and we're halfway through 2020
I can confirm @abePdIta solution works tho, I installed both packages and edited my app.module.ts as such:
import { WebView } from '@ionic-native/ionic-webview/ngx'; import { IonicImageLoader } from 'ionic-image-loader';
IonicImageLoader.forRoot()
in the imports array, WebView
in the providers array then also add IonicImageLoader
in your page's module imports array.
The build works with @abePdIta's solution and the beta version in Ionic 5 with Capacitor but it fails on an Android device with the error:
Uncaught TypeError: Cannot read property 'id' of undefined
at registerNgModuleType (/vendor-es2015.js:81976)
at /vendor-es2015.js:81987
at Array.forEach (<anonymous>)
at registerNgModuleType (/vendor-es2015.js:81987)
at new NgModuleFactory$1 (/vendor-es2015.js:82084)
at compileNgModuleFactory__POST_R3__ (/vendor-es2015.js:85628)
at PlatformRef.bootstrapModule (/vendor-es2015.js:85866)
at Module../src/main.ts (/main-es2015.js:3464)
at __webpack_require__ (/runtime-es2015.js:85)
at Object.0 (/main-es2015.js:3477)