Latest post Thu, Jan 21 2021 3:49 PM by Vadym. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Wed, Sep 23 2020 7:54 PM

    /UICore.js:1 Update is Children update state failed, Action will be disabled: Empty "text" property(avid.open.with.application - menu) TypeError: Cannot convert undefined or null to object

     

    my hamburger context menu for actions inside my app is not opening due to the error in the subject.

    but for my app I just define actions inside my 

    export const avid = [

    ---------------------------------------

    // Search menu actions

    {

    name: 'import-action',

    provides: ['actions'],

    create: () => SearchMenuActions,

    },

    // Search action binding

    {

    name: 'import-action1',

    provides: ['actionBindings'],

    create: () => SearchMenuActionBindings,

    },

    ----------------------------------------------------

    which point to these.

    export const SearchMenuActions = {

    id: 'import-action',

    text: 'Import to Interplay',

    handler: ({ selection, component })=> component.importAssets(),

    };

     

    export const SearchMenuActionBindings = {

    places: ['contextMenu', 'viewMenu'],

    filter: ['mediator-search-view'],

    defaults: {

    index: 500,

    },

    menuModelProvider: () => [{actionId: 'import-action', index: 500}],

    };

    I'm not sure why the menu is throwing the exception in UICore.js?

    text_of_exception 

    ----------------------------------

    close @ webpack-internal:///./node_modules/webpack-dev-server/client/index.js?https://localhost:172

    :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1 Update is Children update state failed, Action will be disabled:  Empty "text" property(avid.open.with.application - menu) TypeError: Cannot convert undefined or null to object

        at Function.keys (<anonymous>)

        at c (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.getPreferredApp (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.getPreferredApp (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at r (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.createItems (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at l.updateItemsIfDynamic (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at l.updateChildren (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1

        at async Promise.all (index 1)

    failUpdate @ :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1

    webpack-internal:///./node_modules/webpack-dev-server/client/index.js?https://localhost:48 [WDS] Hot Module Replacement enabled.

    webpack-internal:///./node_modules/webpack-dev-server/client/index.js?https://localhost:52 [WDS] Live Reloading enabled.

    webpack-internal:///./node_modules/webpack-dev-server/client/utils/reloadApp.js:19 [WDS] App hot update...

    sockjs.js?9be2:1684 WebSocket connection to 'wss://localhost:9000/sockjs-node/134/4ui1f1ez/websocket' failed: Invalid frame header

    WebSocketBrowserDriver @ sockjs.js?9be2:1684

    webpack-internal:///./node_modules/webpack-dev-server/client/index.js?https://localhost:172 [WDS] Disconnected!

    close @ webpack-internal:///./node_modules/webpack-dev-server/client/index.js?https://localhost:172

    :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1 Update is Children update state failed, Action will be disabled:  Empty "text" property(avid.open.with.application - menu) TypeError: Cannot convert undefined or null to object

        at Function.keys (<anonymous>)

        at c (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.getPreferredApp (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.getPreferredApp (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at r (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.createItems (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at l.updateItemsIfDynamic (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at l.updateChildren (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1

        at async Promise.all (index 1)

    failUpdate @ :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1

    :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1 Update is Children update state failed, Action will be disabled:  Empty "text" property(avid.open.with.application - menu) TypeError: Cannot convert undefined or null to object

        at Function.keys (<anonymous>)

        at c (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.getPreferredApp (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.getPreferredApp (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at r (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at Object.createItems (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at l.updateItemsIfDynamic (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at l.updateChildren (:9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1)

        at :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1

        at async Promise.all (index 1)

    failUpdate @ :9000/plugins/core-app/plugins/com.avid.central.UICore/js/UICore.js:1

    ----------------------------------

     

    Normal 0 false false false EN-US X-NONE X-NONE


  • Thu, Jan 21 2021 3:49 PM In reply to

    • Vadym
    • Top 500 Contributor
    • Joined on Thu, Apr 17 2014
    • Posts 262
    • Points 3,110
    • ! Avid Employee
      Avid Developer Moderator

    Re: /UICore.js:1 Update is Children update state failed, Action will be disabled: Empty "text" property(avid.open.with.application - menu) TypeError: Cannot convert undefined or null to object

    Hi Jeff,

    Could you show how your imports are done? This could be the issue with incorrect import/export.

    We have an example available for the actions API if you'd like to use it for your reference

    http://developer.avid.com/mcux_ui_plugin/clux-api/actions-api.html

    https://github.com/avid-technology/ui-toolkit-action-example

Page 1 of 1 (2 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller