Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Type CardModule does not have 'ɵmod' property. #22

Open
thiago-prado-cavalcanti opened this issue Nov 29, 2020 · 3 comments
Open

Comments

@thiago-prado-cavalcanti
Copy link

thiago-prado-cavalcanti commented Nov 29, 2020

"@ionic/angular": "^5.5.1"
"@angular/common": "~11.0.2"

--- MODULE ---
`import { CardModule } from 'ngx-card/ngx-card';
import { CommonModule } from '@angular/common';
import { CreditCardPage } from './credit-card.page';
import { CreditCardPageRoutingModule } from './credit-card-routing.module';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { NgModule } from '@angular/core';

@NgModule({
imports: [CommonModule, FormsModule, IonicModule, CreditCardPageRoutingModule, CardModule],
declarations: [CreditCardPage],
})
export class CreditCardPageModule {}`

--- ERROR ---
core.js:formatted:1 ERROR Error: Uncaught (in promise): Error: Type CardModule does not have 'ɵmod' property. Error: Type CardModule does not have 'ɵmod' property. at getNgModuleDef (core.js:formatted:1) at recurse (core.js:formatted:1) at recurse (core.js:formatted:1) at registerNgModuleType (core.js:formatted:1) at new NgModuleFactory$1 (core.js:formatted:1) at Compiler_compileModuleSync__POST_R3__ (core.js:formatted:1) at Compiler_compileModuleAsync__POST_R3__ [as compileModuleAsync] (core.js:formatted:1) at MergeMapSubscriber.project (core.js:formatted:1) at MergeMapSubscriber._tryNext (core.js:formatted:1) at MergeMapSubscriber._next (core.js:formatted:1) at resolvePromise (zone-evergreen.js:1209) at resolvePromise (zone-evergreen.js:1163) at zone-evergreen.js:1275 at ZoneDelegate.invokeTask (zone-evergreen.js:402) at Object.onInvokeTask (core.js:formatted:1) at ZoneDelegate.invokeTask (zone-evergreen.js:401) at Zone.runTask (zone-evergreen.js:174) at drainMicroTaskQueue (zone-evergreen.js:578) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:487) at invokeTask (zone-evergreen.js:1596)

@patrykharanczyk
Copy link

Same issue here, anyone found whats wrong?

@maxijabase
Copy link

maxijabase commented May 10, 2021

Same issue after upgrading to Angular 11.

EDIT:

Solved it by completely removing import { CardModule } from 'ngx-card/ngx-card'; and CardModule from the imports list in the *.module.ts file.

@diegoalex
Copy link

Changing the import solved my issue.

from:
import { CardModule } from 'ngx-card/ngx-card';

To:
import { CardModule } from 'ngx-card';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants