Skip to content

Commit 1876b05

Browse files
committed
document bcp055
1 parent 559d217 commit 1876b05

File tree

1 file changed

+33
-0
lines changed
  • articles/azure-resource-manager/bicep/diagnostics

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: BCP055
3+
description: Error - Cannot access properties of type <type-name>. An <type-name> type is required..
4+
ms.topic: reference
5+
ms.custom: devx-track-bicep
6+
ms.date: 08/07/2024
7+
---
8+
9+
# Bicep error code - BCP055
10+
11+
This error occurs when you reference a non-existent property of a type.
12+
13+
## Error description
14+
15+
`Cannot access properties of type <type-name>. An <type-name> type is required.`
16+
17+
## Examples
18+
19+
The following example raises the error because _string.bar_ is not defined:
20+
21+
```bicep
22+
type foo = string.bar
23+
```
24+
25+
You can fix the error by removing the reference:
26+
27+
```bicep
28+
type foo = string
29+
```
30+
31+
## Next steps
32+
33+
For more information about Bicep error and warning codes, see [Bicep core diagnostics](../bicep-core-diagnostics.md).

0 commit comments

Comments
 (0)