Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommonJS foreign module #6

Open
cdupont opened this issue Jun 19, 2023 · 0 comments
Open

CommonJS foreign module #6

cdupont opened this issue Jun 19, 2023 · 0 comments

Comments

@cdupont
Copy link

cdupont commented Jun 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant