React SPA Framework - Errors and Warnings
This section lists errors and warnings that may occur in applications built using the DevExtreme SPA framework at runtime.
E3001
Occurs when the application's router cannot parse the URI to which the application navigates.
You can see the URI to which the application navigates in the browser's address bar. Check whether the URI is correct. If yes, check to which routing rules this URL must conform. If it conforms to none of the rules, add/change the rules or change the URI.
E3002
Check to which routing rules the specified object must conform. If it conforms to none of the rules, add/change the rules or change the object.
E3003
Occurs when the navigate() method is called during application initialization.
You can handle the application's initialized event to call the navigate() method.
E3004
Occurs when trying to execute a disabled command.
The command's disabled state is specified by the disabled option. A disabled command is displayed by a disabled widget.
E3006
Occurs when an unknown value is passed as the target parameter of the HtmlApplication.navigate(uri, options) method.
E3010
Specify the id configuration option for the command that takes place in the markup passed in the error's message.
E3011
Occurs when an appropriate controller is not found for the current context within the application's registered controllers.
To investigate the problem, take a look at the JSON object that is provided in the browser's console. This object defines the current context and the registered controllers that are appropriate in the current context. In addition, check to make sure that a file with the required controller is referenced in the application.
E3012
To choose the controller to be used in the current context, the objects added to the application's layout set are considered. These objects define which layout controllers should be used in different contexts. When several objects (registrations) suit the current context, this error occurs. To investigate the problem, use the information that is provided in the browser's console - you will see the current context and the list of competitive registrations. To have only one kind of registration in the current context, define it more specifically within the layout set or handle the application's resolveLayoutController event.
E3013
Try the following solutions for the problem.
- Check to make sure that the same view name, including the case, is specified for the view option of the dxView component, for the function that returns a ViewModel for the view and for the navigation parameter holding the view name.
- Check to make sure that the HTML file with the view template is linked on the application's page (usually index.html).
- Check to make sure that the required view is appropriate for the current context - the platform and type of the device on which the application is running.
E3014
Occurs when an unexpected element is found within the dxView element.
The dxView element may include child elements either of the dxCommand or dxContent type. For details on how to define views and fit them into the application's layouts, refer to the Views and Layouts article.
E3019
Occurs when using DevExtreme scripts version 131 and greater for the views implemented on scripts version 122 and lower.
Refer to the View and Layouts article to learn how to define views. Set the required documentation version using the Version chooser in the documentation main menu.
E3020
Occurs when more than one HTML template is appropriate for the required view/layout in the current context.
A view may have several HTML templates - each for a particular platform and type of the device. When navigating to a view, an HTML template appropriate for the current context is chosen. To avoid situations when several templates are appropriate, define contexts for views more specifically. For details, refer to the Context Specific Markup topic.
E3021
Occurs when the loadTemplates(source) method cannot load a view/layout template from the specified source.
E3024
Occurs when a layout controller is being added to an application within the resolveLayoutController event handler, while this controller is not added to the layout set.
W3005
Use the DevExreme dxAction binding to specify a URL to which to navigate when clicking an HTML element, instead of the using the standard href="#url" attribute.
If you have technical questions, please create a support ticket in the DevExpress Support Center.