I just upgraded my app to beta 4 but I’m having some troubles when running ionic serve. The page stays blank and I get the following in my console.
index.js:197 Uncaught TypeError: Object(...) is not a function
at index.js:197
at Object../node_modules/@ionic-native/camera/index.js (index.js:257)
at __webpack_require__ (bootstrap:81)
at Object../src/app/app.module.ts (app.component.ts:10)
at __webpack_require__ (bootstrap:81)
at Object../src/main.ts (environment.ts:15)
at __webpack_require__ (bootstrap:81)
at Object.0 (app-configuration.ts:1)
at __webpack_require__ (bootstrap:81)
at checkDeferredModules (bootstrap:43)
It looks like something to do with the Camera plugin, but when I remove that dependency it will show an error on some other cordova plugin. I’ve added it to my providers like this.
import { Camera } from '@ionic-native/camera';
providers: [
...
Camera,
...
]
Is there anything I am doing wrong? I know the camera won’t work in the browser, but now its not even starting the app in the browser, which it did with v3.
Yeah I feel your pain and I can imagine it gets frustrating!
In the experience that I have on this forum, it became clear that this forum always was a bit of a mess. I mean users didn’t use proper titles, explanations, categories etc. But its been a while that I’ve used the forum extensively it might have changes since then!
I appreciate you taking the time and effort to answer the same question for the third time though!
No worries, I did gave also the same answer on reddit
Generally speaking the forum works well I think, I mean I hang here since what … let me check …hahaha no way it seems that I hang on the forum since exactly 800 days in row today yep I think I like this forum
I have also same issue during import import { Base64 } from ‘@ionic-native/base64’; … also I have try adding import { Base64 } from ‘@ionic-native/base64/ngx’; still getting error