facebook

angularIDE shows me an error where there is no error

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #660952 Reply

    thomaslaforge
    Participant

    I wrote a simple component like :

    import { Component} from '@angular/core';
    import { CategoryMessage } from 'src/app/models';
    
    @Component({
      selector: 'app-nous',
      templateUrl: './nous.component.html',
      styleUrls: ['./nous.component.scss']
    })
    export class NousComponent {
    
      category = CategoryMessage.Resident;
    
      constructor() { }
    }

    where CateroyMessage is an enum:

    export enum CategoryMessage {
        Resident = 'RESIDENT',
        Family = 'FAMILY',
        Etablissement = 'ETS',
        AllFamily = 'ALL_FAMILY'
    }

    and my html component:
    <app-conversation [category]="category"></app-conversation>

    and I have the below error shown by the IDE on ‘category’:

    Identifier ‘category’ is not defined. The component declaration, template variable declarations, and element references do not contain such a member

    What’s wrong? And how can I get ride of this error?

    Thanks

    #660954 Reply

    thomaslaforge
    Participant

    I think it was Codemix which was in a weird state. I had to reboot the computer and it’s not showing any errors.

    #660993 Reply

    support-swapna
    Moderator

    Thomas,

    Sorry for your experience. It could be a temporary glitch with the CodeMix engine.
    If you see the issue again, select the project and select ‘Build Now with CodeMix’ from Project menu and see if it re-validates the project fine. If the issue persists, then please reach us via Help > CodeMix > Live Chat and we will diagnose the issue quickly.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: angularIDE shows me an error where there is no error

You must be logged in to post in the forum log in