Error building dev client: Could not find method compile()...

As mentioned in the other thread, this looks like one of your dependencies is out of date. Basically it needs a change something like this:

You can probably do it with patch-package

The log should show you which dependency needs to be fixed just above that message. Similar to the message shown in this post: