File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
articles/azure-resource-manager/bicep/diagnostics Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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 ) .
You can’t perform that action at this time.
0 commit comments