Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    “Class argument is invalid:” issue in Magento 2.3.3 on Admin Grid

    In the new release of Magento 2.3.3, we are getting a new issue when opening some admin grids. This issue is coming from the Mass-actions which have sub-options. You will find an exception like “Class argument is invalid: Webkul\ModuleName\Ui\Component\MassAction\StatusOptions” as shown below,

    In earlier Magento versions that means versions prior to the Magento 2.3.3 in UI component XML file, we used below syntax to create Mass-actions with Sub-options,

    So now let’s see what changes do we need to make to make it work. Instead of the above code we will have to write below code in the UI component XML file,

    Now we need to add few more lines in the etc/di.xml file as below,

    Now run the di compile command and it should work as expected.

    Thank you for reading the blog. Feel free to comment if you face any issue.

    Happy coding 👨 💻

    . . .

    Comments (4)

    Add Your Comment

  • Roman
    Thanks! Very helpful article.
    • Sanjay Chouhan
      You are most welcome.
  • Igor
    Thanks for your tip.
    Helped me update code from M2.1.* to M2.3.4
    • Sanjay Chouhan
      You are most welcome.
  • Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again