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

Can't bind to 'mentionSelect' since it isn't a known property of 'input' #68

Closed
vishnuSBabu91 opened this issue Apr 17, 2018 · 7 comments

Comments

@vishnuSBabu91
Copy link

vishnuSBabu91 commented Apr 17, 2018

Cant able to invoke the function

Uncaught Error: Template parse errors:
Can't bind to 'mentionSelect' since it isn't a known property of 'input'. ("	<input type="text" name="equationTexString" [(ngModel)]="equationTexString" [mention]="searchData" [ERROR ->][mentionSelect]="mentioned" [mentionConfig]="{triggerChar:'#',maxItems:10,labelKey:'tag'}">
					<!--"): ng:///AppModule/AppComponent.html@97:105
    at syntaxError (compiler.js:485)
    at TemplateParser.parse (compiler.js:24668)
    at JitCompiler._parseTemplate (compiler.js:34621)
    at JitCompiler._compileTemplate (compiler.js:34596)
    at eval (compiler.js:34497)
    at Set.forEach (<anonymous>)
    at JitCompiler._compileComponents (compiler.js:34497)
    at eval (compiler.js:34367)
    at Object.then (compiler.js:474)
    at JitCompiler._compileModuleAndComponents (compiler.js:34366)
@Alex61NN5
Copy link

Have you managed to solve this issue?? I cant seem to get it working...

@dmacfarlane
Copy link
Owner

This could be a problem with the module import. Is anyone else having this issue?

@hopeseekr
Copy link

Man, I spent over an hour with this exact problem only with textareas and I'm banging my head against the wall!

@dmacfarlane
Copy link
Owner

In node_modules/angular-mentions/mention/package.json, could you try changing the line:

  "main": "src/mention/index.ts",

To:

  "main": "mention/index.js",

And see if that makes any difference?

@vishnusbabu
Copy link

vishnusbabu commented Nov 20, 2018

@hopeseekr I resolved the problem using a bind method in mentionConfig

[mentionConfig]="{mentionSelect: itemMentioned.bind(self), labelKey: 'tag'}"

@hey24sheep
Copy link

hey24sheep commented Mar 17, 2019

I am having this same issue, can't solve it by changing "main" in package.json as suggested by @dmacfarlane .

How to resolve this issue? It's been months and still no one figured it out?

@iamsahilralkar
Copy link

@hey24sheep please try with [mentionConfig]="{mentionSelect: itemMentioned.bind(this), labelKey: 'tag'}"

I solved this issue by using same

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

7 participants