Did you add the APP ID and domain name when creating the app?
If you created an APP ID and added the APP ID when creating the mini program, you need to go to the management backend to add the corresponding domain name Tip: After adding, restart your development tool and run it again
If you are testing without APP ID, it is mostly because your express-ws is not configured correctly
It may be because your local service is not configured properly
Two situations
Did you add the APP ID and domain name when creating the app?
If you created an APP ID and added the APP ID when creating the mini program, you need to go to the management backend to add the corresponding domain name
Tip: After adding, restart your development tool and run it again
If you are testing without APP ID, it is mostly because your express-ws is not configured correctly
It may be because your local service is not configured properly
Friend, how did you solve it? My express also encountered this problem