docs

You are reading the docs for v0.1.2. Nabi 0.1.2 is no longer supported. Latest release: v0.1.3 →

#E0128: invalid WIT

A .wit file named by ffi::wit::import { .. } or ffi::wit::export { .. } cannot be read, parsed or resolved. Create the file or fix its path (relative to the source file), or fix the WIT file at the place the message names (stdlib 1.8).

nabi
ffi::wit::import { "calc.wit" }
error[E0128]: WIT: calc.wit:0:0: cannot read: No such file or directory (os error 2)
  --> main.nabi:1:1
   |
 1 | ffi::wit::import { "calc.wit" }
   | ^^^

Create the WIT file, or fix the path; it is relative to the source file. When the file exists but does not parse, the message gives its line and column.

Related: E0084 invalid foreign-function use, E0125 cannot read or write a file

Found a mistake? Edit this page on GitHub. Last updated