explooosion / Agm-Direction

This is the directive for @agm/core (not official)
https://robby570.tw/Agm-Direction-Docs/
MIT License
75 stars 26 forks source link

agm-direction' is not a known element #108

Open umsuka opened 3 years ago

umsuka commented 3 years ago

Hi

I am using Angular 11 and ionic 5

Here is my info

Ionic:

   Ionic CLI                     : 6.13.1 (C:\Users\xxx\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.6.4
   @angular-devkit/build-angular : 0.1000.8
   @angular-devkit/schematics    : 10.0.8
   @angular/cli                  : 10.0.8
   @ionic/angular-toolkit        : 2.3.3

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 4.2.1, (and 17 other plugins)

Utility:

   cordova-res : 0.15.3
   native-run  : 1.3.0

System:

   Android SDK Tools : 26.1.1 (C:\Users\xxx\AppData\Local\Android\Sdk)
   NodeJS            : v12.20.2 (C:\Program Files\nodejs\node.exe)
   npm               : 7.11.2
   OS                : Windows 10

I get these errors when loading the map on init

'agm-direction' is not a known element:
1. If 'agm-direction' is an Angular component, then verify that it is part of this module.
2. If 'agm-direction' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

core.js:7813 Can't bind to 'origin' since it isn't a known property of 'agm-direction'.

Can't bind to 'waypoint' since it isn't a known property of 'agm-direction'.

Thanks

explooosion commented 3 years ago

Hi @umsuka , I have build an ionic app for sample, hope to help you.

https://github.com/explooosion/ionic-agm-direction-example

philecom commented 2 years ago

Add the module and import it into the component module you're applying the directive.