Skip to content

Commit dec29f5

Browse files
tchajedhdgarrood
authored andcommitted
Add example of unknown module error (documentationjs#83)
Describe possible fix that you need to install a dependency with `bower`.
1 parent 0ce240b commit dec29f5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

errors/UnknownName.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,24 @@ at line 1, column 13 - line 1, column 14
1313
Unknown value y
1414
```
1515

16+
```
17+
> import Math
18+
19+
Error found:
20+
in module $PSCI
21+
22+
Unknown module Math
23+
```
24+
1625
## Cause
1726

18-
This error if a name is used but that name is not in scope. Names can refer to various things - values, types, operators, type classes, etc.
27+
This error if a name is used but that name is not in scope. Names can refer to various things - values, types, modules, operators, type classes, etc.
1928

2029
## Fix
2130

2231
- Verify the spelling of any names used.
2332
- Verify that the name has been imported.
2433
- If you are using qualified imports, make sure the module name is correct.
34+
- If an import results in an "Unknown module" error, make sure that any required dependencies have been installed.
2535

2636
## Notes

0 commit comments

Comments
 (0)