1

As written in the docs here, to import FileOpener you should place

import { FileOpener } from "@ionic-native/file-opener";

in you app.module.ts, but always get "Invalid provider in ngModule..."

1 Answer 1

2

Apparently the right path to import FileOpener is

import { FileOpener } from "@ionic-native/file-opener/ngx";

That's looking in the plugin source file

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you. I had the same problem. It's a shame the documentation is so bad.
@Leia Thats true they havnt given in the documentation, how to import modules.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.