error-guide: remove invalid_package_name

This commit is contained in:
Mazdak Farrokhzad 2022-02-23 12:25:03 +01:00 committed by GitHub
parent 84617bd7af
commit cb02a06821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,28 +0,0 @@
# Invalid package name
## Example
This error occurs when a package name in an `import` contains invalid characters.
Erroneous code example:
```js
import FOO.bar;
```
The compiler will reject this code with, for example...:
```js
Error [EPAR0370012]: package names must be lowercase alphanumeric ascii with underscores
--> test.leo:1:8
|
1 | import FOO.bar;
| ^^^
```
In this specific case, you probably meant `foo.bar` instead.
If so, so you can solve the problem with:
```js
import foo.bar;
```