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 'subMenu' since it isn't a known property of 'ng-template'. #243

Open
raghav331 opened this issue Dec 23, 2021 · 0 comments
Open

Comments

@raghav331
Copy link

Describe the bug
The sub menu is failing when I do an production configuration bulid.
"Compiling with Angular in legacy View Engine compilation mode.
An unhandled exception occurred: Template parse errors:
Can't bind to 'subMenu' since it isn't a known property of 'ng-template'.

  1. If 'subMenu' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of
    this component.
  2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
    Multiply function

    <ng-template *ngIf="this.treetype!='input'" [ERROR ->][subMenu]="convertSubMenu">
    Convert
    "

To Reproduce
Steps to reproduce the behavior:

  1. I have a component that uses the context menu(as an npm package)
  2. I have referred the context menu component in another project
  3. normal builds are working fine
  4. When i try to do and ng build --configuration production , I get this error
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

1 participant