And you do the dance:
yes I do.
There was a time where after F4 my custom widget was not showing in the Toolbox but now it is.
And when I modify the list of inputs of my widget through the xml, I can see the change in the Mendix project. Still when it is running, it says the widget cannot be found.
Maybe check your widgets folder for extraneous widgets. If you changed the name of a widget or the package name, you might have an extra copy in there.
Other than that, you could try manually cleaning your deployment folder by deleting the web folder from it.
Those are the only the two places where widgets live at any point in your project directory.
I didn’t find extra items in the folder, and deleting the web folder didn’t work.
I removed the widgets from the page and noticed I was still getting the error when running it.
Not sure what the cause really was but I recreated a new page and now it works fine.
Thank you for your help.
Please open your react project, go to package.json and check for the value you have entered in ‘projectPath’ attibute.
Putting in the right path that leads to your project root directory will lead to widget mpk file being placed in the right place everytime and save your manual efforts.