Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
Ionic FormBuilder - Error: Type ImageService does not have 'ɵmod' property

I have a problem, my FormBuilder not funkcioniert , writes for my this problem.

ERROR Error: Uncaught (in promise): Error: Type ImageService does not have 'ɵmod' property. Error: Type ImageService does not have 'ɵmod' property.

This is on my screenenter image description here

My routing.module is

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EmailComposerPage } from './email-composer.page';
import { FormsModule} from '@angular/forms' ;

import { ImageService } from '../email-composer/image.service';

const routes: Routes = [
  {
    path: '',
    component: EmailComposerPage
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes),FormsModule],
  exports: [RouterModule],
  providers: [ImageService],
})
export class EmailComposerPageRoutingModule {}

My ImageService is

import { Injectable } from '@angular/core';
import { EmailComposer } from '@ionic-native/email-composer';

@Injectable()
export class EmailService {

  constructor(private _EMAIL   : EmailComposer) { }
/**
    *
    * @public
    * @method sendMail
    * @param to             {string}    The primary e-mail address
    * @param cc             {string}    The carbon copy e-mail address
    * @param bcc            {string}    The blank carbon copy e-mail address
    * @param attachment     {string}    The attachment to be sent
    * @param subject        {string}    The subject for the e-mail message
    * @param body           {string}    The message content
    *
    */
 sendEmail(to         : string, 
  cc         : string, 
  bcc        : string, 
  attachment : string,
  subject    : string,
  body       : string) : void
{
// Use the plugin isAvailable method to check whether
// the user has configured an email account
this._EMAIL.isAvailable()
.then((available: boolean) =>
{

// Check that plugin has been granted access permissions to 
// user's e-mail account
this._EMAIL.hasPermission()
.then((isPermitted : boolean) =>
{

 // Define an object containing the 
 // keys/values for populating the device 
 // default mail fields when a new message 
 // is created
 let email : any = {
    app             : 'mailto',
    to          : to,
    cc          : cc,
    bcc             : bcc,
    attachments     : [
      attachment
    ],
    subject         : subject,
    body        : body
 };

 // Open the device e-mail client and create 
 // a new e-mail message populated with the 
 // object containing our message data
 this._EMAIL.open(email);
})
.catch((error : any) =>
{
 console.log('No access permission granted');
 console.dir(error);
});
})
.catch((error : any) =>
{
console.log('User does not appear to have device e-mail account');
console.dir(error);
});
}


}

Please help my, whats the problem? Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!