- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2
 
Closed
Description
recent versions of Node (since v13?) refuse to load faucet.config.js for ESM projects, i.e. such with "type": "module" in package.json:
Warning: require() of ES modules is not supported.
require()of…/faucet.config.jsfrom…/node_modules/faucet-pipeline-core/lib/config.jsis an ES module file as it is a.jsfile whose nearest parentpackage.jsoncontains"type": "module"which defines all.jsfiles in that package scope as ES modules.
Instead renamefaucet.config.jsto end in.cjs, change the requiring code to useimport(), or remove"type": "module"frompackage.json.
renaming the config file (i.e. faucet -c faucet.config.cjs) is a viable workaround, but not very satisfying
Metadata
Metadata
Assignees
Labels
No labels