Hidden field in additionalSignUpFields creates error

I am using two additional signup fields with lock without problems. Now I like to add one (or more) hidden fields, but as soon as I add the example hidden field (as shown in Lock Configuration Options )

    {
      type: "hidden",
      name: "signup_code",
      value: "abc123"
    }

I get the following error message:

Types of property 'additionalSignUpFields' are incompatible.

The following works, but is not hidden as I need it:

    {
      name: "signup_code",
      placeholder: "signup",
      value: "abc123"
    }

Do hidden fields work at all in lock v11?

Can you share the exact initialization code for the property?