Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 470 Bytes

MissingFFIModule.md

File metadata and controls

13 lines (7 loc) · 470 Bytes

MissingFFIModule Error

Cause

This error occurs if a module uses any foreign imports, but a foreign module could not be found.

Usually, this means that you declared a foreign import in the PureScript module but didn't create a corresponding FFI module yet.

Fix

  • Check that the foreign module with the matching name exists. The PureScript compiler finds FFI modules by taking the source file path, and replacing the .purs extension with .js.

Notes