Skip to content

CommonJS foreign module #6

@cdupont

Description

@cdupont

I'm trying to adapt the example provided, but got:

Error found:                                                                                                                                                                                               
at src/Tile.purs:2:1 - 102:20 (line 2, column 1 - line 102, column 20)                                                                                                                                     
                                                                                                                                                                                                           
  A CommonJS foreign module implementation was provided for module Tile:                                                                                                                                   
                                                                                                                                                                                                           
    src/Tile.js                                                                                                                                                                                            
                                                                                                                                                                                                           
  CommonJS foreign modules are no longer supported. Use native JavaScript/ECMAScript module syntax instead.     
                                                                                                                                                                                                           
See https://github.com/purescript/documentation/blob/master/errors/DeprecatedFFICommonJSModule.md for more information,                                                                                    
or to contribute content related to this error.                                                                       

I'm not sure what is at play here, maybe the example need to be updated to ES6?
Note that I'm beginner with Purescript.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions