Open AmineMediazain opened 5 years ago
I am also facing the same issue, solution please??
Same here!! after a small changes to fit ionic 4, it shoots this error in console:
Uncaught Error: Can't resolve all parameters for ImageLoader: ([object Object], ?, ?, [object Object]).
This is hacky, but you can run this script on post install or pre build: ` const fs = require("fs");
const filePaths = [ "./node_modules/ionic-image-loader/dist/providers/image-loader.js", "./node_modules/ionic-image-loader/dist/image-loader.module.js", "./node_modules/ionic-image-loader/dist/providers/image-loader.d.ts", ]; let replace = "'@ionic-native/file'"; let replaceWith = "'@ionic-native/file/ngx'";
for(let filePath of filePaths) { let lang = fs.readFileSync(filePath, "utf8"); lang = lang.replace(replace, replaceWith); fs.writeFileSync(filePath, lang, "utf8") }
console.log("Done!")
`
any help ?