Field type ‘text’ is not installed properly

I got this error after changing a field in the deployment script from number to text.
Luckily the fix was quite easy once I knew what the problem was: The field’s type attribute is case sensitive!
Well that makes sense. As soon as I changed the field’s type from ‘text’ to Text, the deployment worked as expected.

<Field Type="Text" Name="Test" ID="{ba2b97ac-94e4-4b86-8845-279b22a82036}" DisplayName="Test" StaticName="Test" Group="My Group" SourceID="{8dfe28a0-f470-4a48-9b96-e90f759c3b2c}"/>