facebook

Using echarts throws error in editor

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

    superforce
    Participant

    Hi,

    I just want to point out, that when using echarts in Angular App, the editor throws an error at this line of code:
    <div echarts [options]=”chartOption” class=”demo-chart”></div>
    The error is: “Can’t bind to ‘options’ since it isn’t a known property of a ‘div'” – what is normally right, but not in this special case 🙂
    Of course application works as intented, just the editor have problem with that.

    Would be nice if you could fix it 😉

    Best regards

    Martin from Slovakia

    • This topic was modified 4 years, 7 months ago by superforce.
    #654525 Reply

    support-swapna
    Moderator

    Martin,

    Sorry that you are seeing this issue. I assume you are working with the latest CodeMix release, CI 2020.4.7. If no, then please update via Help > Check for Updates and see if the validation error is still reported.

    Is the error being reported in the HTML file?

    I followed this tutorial for echarts and do not see any errors being reported for the div tag at my end. I see the reported error only if I do not add the import for NgxEchartsModule in the app.module.ts file.
    Please recheck the imports and the dependencies at your end.

    If the code is right and you are still seeing the error, try re-validating the project via the Angular Control Panel (click on the Angular icon in the editor area to get the options for validation) and see if it helps. If nothing works, then please share with us the zipped project files, or the code snippets, along with the package.json contents to help us replicate the issue at our end.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #654529 Reply

    superforce
    Participant

    Hi,

    thank you for your reply. Now it works and I didn’t change anything. So perhaps turning Eclipse on and off again helped, or as you wrote, project re-validation does the same job. Thank you anyway 😉

    Best reagrds

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Using echarts throws error in editor

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