Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Can't resolve all parameters for ImageLoader: ([object Object], ?, [object Object], [object Object]). at syntaxError #264

Open
AmineMediazain opened this issue Oct 11, 2019 · 4 comments

Comments

@AmineMediazain
Copy link

No description provided.

@AmineMediazain
Copy link
Author

any help ?

@DevKailash
Copy link

DevKailash commented Jan 29, 2020

I am also facing the same issue, solution please??

@reznov11
Copy link

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]).

@lestrell
Copy link

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!")

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants