Firstly, you should check the version of your environment. You can refer to the list of SPFx development environment compatibility. Then you can try following steps to rebundle the webpart.
- run
gulp bundle
andgulp package-solution
but don't use the--ship
flag so that the generated package will point to your local files - deploy the generated package to the app catalog
- run
gulp serve --nobrowser
to start the local web server - add the web part to the workbench
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.