I created an app catalog and a developer site
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
I found the answer in Microsoft docs: Client-side web part visibility in SharePoint sites Web parts included in solutions which have been centrally deployed, will be immediately visible in the web part picker in both classic and modern pages.
I figure out the solution, you need to use the following command in your console before create the solution.
then create your solution again and reinstall it in app catalog.