- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by superforce.
-
AuthorPosts
-
superforceParticipantHi,
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.
support-swapnaModeratorMartin,
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
superforceParticipantHi,
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
-
AuthorPosts