Using Filechooser but receiving error that "open" is not a property of type FileChooser


#1

Using Filechooser plugin but receiving error that “open” is not a property of type FileChooser.

Below is code
let fileChooser = new FileChooser();
fileChooser.open()
.then(uri => console.log(uri))
.catch(e => console.log(e));

When I try to build it breaks with error “open” is not a property of type fileChooser. I am doing it exactly how it is written on docs. Please help!

Thanks!


#2

No you aren’t. Inject, don’t explicitly construct.