@flavio_b
It might solve the problem by updating the version (check this discussion).
Also, the way I recommended for ionic3 might be deprecated in ionic 6. Therefore, you should use the coding rules in the new document. I will share the link which might help you.