Is you are not trying to develop a plugin, this is maybe slightly wrong channel. And actually you might need to ask React Native on why their stuff is not working properly or what you do wrong.
But anyway, to get any help, you should at least include minimal information. You did not even include a full error message.
And the error even advices some things to do, which information you also did not provide, especially the build
--scan
URL where one could see the situation pretty well.