| title | BCP055 |
|---|---|
| description | Cannot access properties of type <type-name>. A <type-name> type is required. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when you reference a nonexistent property of a type.
Cannot access properties of type <type-name>. A <type-name> type is required.
Error
The following example raises the diagnostic because string.bar isn't defined:
type foo = string.barYou can fix the diagnostic by removing the reference:
type foo = stringFor more information about Bicep diagnostics, see Bicep core diagnostics.