Skip to content

Please add an @NgModule annotation Error for angular project. #453

@WongSIuWing

Description

@WongSIuWing

Error

Error: Unexpected value 'IonicSelectableModule' imported by the module 'AppModule'. Please add an @NgModule annotation.
at verifySemanticsOfNgModuleDef (core.mjs:30044:19)
at core.mjs:30057:9
at Array.forEach ()
at verifySemanticsOfNgModuleDef (core.mjs:30055:10)
at AppModule.get (core.mjs:30003:30)
at getInjectorDef (core.mjs:671:15)
at walkProviderTree (core.mjs:2775:18)
at core.mjs:2735:13
at core.mjs:1389:79
at Array.forEach ()
content_script_bundle.js:1 Attempting initialization Wed Aug 07

Angular Version

Angular CLI: 18.1.2
Node: 20.12.2
Package Manager: npm 10.5.0
OS: win32 x64

Angular: 18.1.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, material, platform-browser
... platform-browser-dynamic, router, service-worker

@angular-devkit/architect 0.1801.2
@angular-devkit/build-angular 18.1.2
@angular-devkit/core 18.1.2
@angular-devkit/schematics 18.1.2
@schematics/angular 18.1.2
rxjs 6.6.7
typescript 5.5.4
zone.js 0.14.8

Ionic Version

"@ionic/angular": "^6.1.3",

Library Version

The installed version of the library "ionic-selectable": "^4.9.0", "ionic-selectable": "^4.8.0",

Import

This error appears when I try to import it on
@NgModule({
...
imports: [
IonicSelectableModule
],
...
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions