That version should be fine. I haven’t come across that error before so something must be unusual with your setup or code.
Have a look at these tips.