Results 1 to 2 of 2

Thread: Design View and Viewmode Links: Invalid Model name

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User EricRicher's Avatar
    Join Date
    Jul 2014
    Vote Rating

    Default Design View and Viewmode Links: Invalid Model name

    Architect is throwing Framework errors when rendering a view with a viewmodel that has a links config and it is not rendering the view at all.

    I define a model, view and a viewModel as follow using Architect:

    Ext.define('MyApp.view.FormPanel', {
        extend: 'Ext.form.Panel',
        alias: 'widget.formpanel',
        requires: [
        viewModel: {
            type: 'formpanel'
        title: 'My Form'
    Ext.define('MyApp.view.FormPanelViewModel', {
        extend: '',
        alias: 'viewmodel.formpanel',
        links: {
            theUser: {
                type: 'User',
                create: true
    Ext.define('MyApp.model.User', {
        extend: '',
        alias: 'model.user',
        requires: [
        fields: [
                name: 'firstname'
                name: 'lastname'
    Every time I go to Design View to look at the form, I get the following error in the log and the view is not rendered. This is annoying to me right now as I am using links in many forms and views to download/upload server data. None of them are showing up in the Design view which sorts of defeats the purpose of using Architect as a visual design tool.

    However, even if Architect has a issue dealing with links config in viewmodels, the code works perfectly fine and as expected.


    I tried setting type to 'MyApp.model.User' , 'model.User' or simply 'user' in the links config and I get the same error.

    Here a link to a test Architect archive with the above code.

    Here's the version of architect that I am using:

    Channel: 4.2-stable
    Platform: - win32 x64
    Renderer: 56.0.2924.87
    Framework: Ext JS 6.5.x Modern

    I also tried on Mac with the same results.

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2010
    Vancouver, Canada
    Vote Rating


    Sencha support, is there a workaround for this bug?

Similar Threads

  1. Design View and Viewmode Links: Invalid Model name
    By EricRicher in forum Sencha Architect 4.x: Q&A
    Replies: 3
    Last Post: Yesterday, 10:23 PM
  2. Replies: 0
    Last Post: 31 Jul 2017, 1:15 PM
  3. [INFOREQ] Binding to view model links is called multiple times.
    By HriBB in forum Ext 5: Bugs
    Replies: 1
    Last Post: 27 Mar 2015, 7:57 AM
  4. Replies: 3
    Last Post: 24 Sep 2014, 11:18 AM
  5. Initial View, Gridpanel aren't dislayed in Design view
    By msinn in forum Sencha Architect 2.x: Bugs
    Replies: 2
    Last Post: 23 Jun 2012, 7:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts