-
Hello, I'm running Capacitor 2.4.6 on iOS/android and I'm trying to read some local files (stored in the If I use the It's pretty annoying in development mode. Any idea how I could work around that limitation ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok sorry for the auto-answer but I just found out why after looking for hours... The correct way of importing (as of Capcitor 2.*) is import { Plugins } from '@capacitor/core';
const { Filesystem } = Plugins; The thing is you don't get any error and it's working fine on android and without livereload so it's hard to spot |
Beta Was this translation helpful? Give feedback.
Ok sorry for the auto-answer but I just found out why after looking for hours...
In my service I imported the
Filesystem
the wrong way usingimport { Filesystem } from '@capacitor/core';
The correct way of importing (as of Capcitor 2.*) is
The thing is you don't get any error and it's working fine on android and without livereload so it's hard to spot