E0030

E0030#

Warning name: missing_package_alias

The package alias is empty. The default package alias will be used instead. This warning can occur when checking the deprecated moon.pkg.json format; current moon.pkg files cannot express an explicitly empty alias.

Erroneous example#

moon.pkg.json#
{
  "import": [
    {
      "path": "moonbit-community/E0030/lib",
      "alias": ""
    }
  ]
}

Suggestion#

Use a non-empty alias for the package:

moon.pkg.json#
{
  "import": [
    {
      "path": "moonbit-community/E0030-fixed/lib",
      "alias": "hello"
    }
  ]
}