isaacplmann / ngx-tour

Product Tour Built in Angular

Home Page:https://isaacplmann.github.io/ngx-tour

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Error : Error: anchorId sort already registered!

Abhishek005001 opened this issue · comments

Hi ,
I am getting the error"anchorId already registered! " for the anchor ID which is present inside one of the component and this component is common to all the component in the application.

OptionsComponent.html:2 ERROR Error: anchorId xyz already registered!
at NgxmTourService.push../node_modules/ngx-tour-core/fesm5/ngx-tour-core.js.TourService.register (ngx-tour-core.js:248)
at TourAnchorMatMenuDirective.push../node_modules/ngx-tour-md-menu/fesm5/ngx-tour-md-menu.js.TourAnchorMatMenuDirective.ngOnInit (ngx-tour-md-menu.js:165)
at checkAndUpdateDirectiveInline (core.js:18537)
at checkAndUpdateNodeInline (core.js:19801)
at checkAndUpdateNode (core.js:19763)
at debugCheckAndUpdateNode (core.js:20397)
at debugCheckDirectivesFn (core.js:20357)
at Object.eval [as updateDirectives] (OptionsComponent.html:2)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:20349)
at checkAndUpdateView (core.js:19745)

Add a config/input to the component to specify custom anchor id.

I'm having the same problem. While reusing a component in a page I'm getting a lot of errors in the console.