i'm developing a simple spfx webpart that uploads a file to a sharepoint document library.
It works well on the workbench. I am able to add it to a page, and the first time I add it to the page it works.
When I refresh the page, the webpart does not display anymore.
How should I debug this problem?