Skip to content

Not a known element #62

Description

@StefanWolf-tp

I use the latest version of release 4 (installed via: npm i ionic-pullup@4.0.0-beta.6)

But i always get the error:

'lib-ionic-pullup' is not a known element:
1. If 'lib-ionic-pullup' is an Angular component, then verify that it is part of this module.
2. If 'lib-ionic-pullup' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  </ng-container>
</ion-content>

So i guess something is wrong with the module registration. But i double checked it and it seems to be right in my opinion:
in the app.module.ts i added the import:
import {IonicPullupModule} from 'ionic-pullup';

and then:

@NgModule({
     declarations: [ .... ],
     entryComponents: [ .... ],
     imports: [
     ....
     IonicPullupModule
  ],
  exports: [TranslateModule],
  providers: [ .... ] ,
  ....
})
export class AppModule {}

Can't use the latest version cause of angular 7 i guess? Cause i'm getting the following error:
ERROR in node_modules/ionic-pullup/lib/ionic-pullup.component.d.ts(80,9): error TS1086: An accessor cannot be declared in an ambient context.

I also tried to isntall the latest 3.0.1 Version and did some changes on the module (mainly only the imports for the ionic-angular.. (changed to @ionic/angular). Then the app build without errors but still getting the same issue but with the other component ion-pullup which was used in this version.

What i also checked was the ionic-pullup.metadata.json file. There is definitely a selector for the pullup component defined:
.... ,"arguments":[{"selector":"lib-ionic-pullup","changeDetect ....

I am using the pullup component only on one page where i also added the import of the footer state:
import { IonPullUpFooterState } from 'ionic-pullup';

so any idea what i can do to get it working?

also here my ionic info:


Ionic:

   Ionic CLI                     : 6.16.3 (C:\Users\xxxxxxxxxxxx\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 4.11.3
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.4.1

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : android 9.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 29 other plugins)

Utility:

   cordova-res : not installed globally
   native-run  : 1.4.0

System:

   NodeJS : v14.17.3 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.13
   OS     : Windows 10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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