Unable to create cloud tasks in GCP

After a bit of fiddling I tried to create the task queue via the CLI

gcloud tasks queues create <queue name>

It then gave me a more informative error, which was that an App Engine app needed to be present first (why?)

There is no App Engine app in project [project name].

So I created the default App Engine app and was then able to create the queue.