Indeed, that was happening in the previous versions of Pennylane. But as Maria pointed out in the same post:
And we will be glad to help to fix the issue! But I couldn’t reproduce the error with the code you sent. It runs with no errors here. Are you sure the code is running in the correct environment with the latest version of Pennylane installed?