It was a bug that WordPress has now fixed. Check the linked GitHub issue above for more information. Thanks!
Here’s the temporary fix I found on GitHub for now since it’s still bugged for anyone trying to use this.
Run npx @wordpress/create-block@latest
After setup, and once you get the error, open the files created and navigate to the package.json. Add the following above “dependencies”
”overrides”: {
“@wordpress/upload-media”: “0.24.0”
},
then cd back to the folder that contains your custom block and run npm install @wordpress/scripts –save-dev
You should be able to npm run start and build after.