E3100

E3100#

Compiler diagnostic name: invalid_mbti.

The package interface file is invalid.

An .mbti file describes the public interface of a package. MoonBit reports this error when the file cannot be parsed as a valid interface file.

This is the parser error for invalid interface-file syntax. The warning table also contains E0047 with the same diagnostic name, but current .mbti syntax errors are reported through this compiler error.

Erroneous example#

pkg.mbti#
package "moonbit-community/E3100"

let value = 1

Suggestion#

Regenerate the interface with moon info, or edit it so it contains valid interface declarations.

pkg.mbti#
package "moonbit-community/E3100-fixed"

fn value() -> Int