'React.js dot NET component not found error

Any idea about below error?

Could not find a component named 'MainLayout'. Did you forget 
to add it to App_Start\ReactConfig.cs?
Description: An unhandled exception occurred.
Exception Details: React.Exceptions.ReactInvalidComponentException: Could not find a component named 'MainLayout'. Did you 
forget to add it to App_Start\ReactConfig.cs?
Source Error:
Line 119: if (ReactSettingsProvider.Current.EnableClientSide && 
!isEditingOverrideEnabled)
Line 120: {
Line 121: writer.WriteLine(reactComponent.RenderHtml());
Line 122:
Line 123: var tagBuilder = new TagBuilder("script")
Source File: C:\Project\HenryFord\Sitecore\src\Foundation\React\code\Mvc\JsxView.cs Line: 121
[ReactInvalidComponentException: Could not find a component named 
'MainLayout'. Did you forget to add it to App_Start\ReactConfig.cs?]
 React.ReactComponent.EnsureComponentExists() in 
D:\a\1\s\src\React.Core\ReactComponent.cs:279

Server.min.js has component Mainlayout code still in backend we get error “could not find a component named Mainlayout”.

enter image description here

enter image description here

Please let me know if more information is required. Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source