Error on adding component to an element
See original GitHub issueHi This line of code throws an exception
[Inject]
private MauiBlazorBindingsRenderer Renderer { get; set; }
protected override async void OnAfterRender(bool firstRender)
{
if (firstRender is true)
{
ContentPage page = new() { Title = "Ref" };
await Renderer.AddComponent<MainPage>(page); //Error here
}
}
Exception is
MainPage is a ContentView I tried to make it a ContentPage but it throws the same error I tried this on windows & android
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Angular 2 'component' is not a known element
I'm trying to use a component I created inside the AppModule in other modules. I get the following error though: "Uncaught (in promise):...
Read more >NG8001: Unknown HTML element or component
Make sure that the component is correctly imported inside your NgModule or standalone component, by checking its presence in the imports field.
Read more >Angular Basics: Troubleshooting Unknown Element Errors
The “Angular error NG8001: Unknown HTML element or component” error is a run-time error that occurs when the Angular compiler encounters an ...
Read more >An error occurred while adding an instance of this component
Today I've tried to drag and drop the component as usual from the Assets panel but there is an error message for some...
Read more >Angular Error NG8001: is not a known element ... - YouTube
Angular Error : is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Bugfix was merged, and will be released soon (-ish), therefore I’m closing this item. If you’d like, you can check it out in the nightly builds (read here).
FlyoutMenuPage
andFlyoutMenuItem
are parts of that same sample https://github.com/Dreamescaper/BlazorBindings.Maui/tree/main/samples/FlyoutPageSample/Views