capacitor: Beta 25 breaks ionic/pwa-elements camera modal

Description of the problem: It seems capacitor beta.25 breaks the camera plugin using ionic/pwa-elements with an ionic/angular project. When I update to beta 25 I receive the following error: TypeError: cameraModal.present is not a function error.

If i revert to beta.24 it works again as expected.

Affected platform

  • Android
  • iOS
  • electron
  • [ X ] web

OS of the development machine

  • Windows
  • [ X ] macOS
  • linux

Other information: I am using the implementation described below. https://stenciljs.com/docs/angular/

Capacitor version: Beta 25 node version: v10.15.3 npm version: 6.9.0

Steps to reproduce: Install Camera plugin on ionic/angular 4.4.0 project. Integrate ionic/pwa-elements. Call the Camera.getPhoto() function. Get error. TypeError: cameraModal.present is not a function error.

Downgrade to beta.24 and it all works.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 16 (10 by maintainers)

Most upvoted comments

Looks like you have the docs cached. The angular instructions in that link are

Angular

main.ts:

import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

import { defineCustomElements } from '@ionic/pwa-elements/loader';

if (environment.production) {
 enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
 .catch(err => console.log(err));

// Call the element loader after the platform has been bootstrapped
defineCustomElements(window);

So exactly what you did

The animation thing is temporary and will be coming back