Back to Purescript

`ErrorParsingFFIModule` Error

errors/ErrorParsingFFIModule.md

latest590 B
Original Source

ErrorParsingFFIModule Error

Cause

This error occurs when the compiler cannot verify foreign declarations in JavaScript code, because it was unable to parse a JavaScript file.

Fix

  • Verify the JavaScript code in your foreign modules.
  • Foreign modules should conform to the ES5 specification. Values in foreign modules should be provided in the form exports.name = value;.

Notes

  • This article explains how to create foreign modules.
  • An example can be found here.