mifi / editly

Slick, declarative command line video editing & API
MIT License
4.8k stars 313 forks source link

can't run examples #276

Open Moanrisy opened 9 months ago

Moanrisy commented 9 months ago
node customCanvas.js
node:internal/process/esm_loader:94
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/home/mars/99Others/editly/' is not supported resolving ES modules imported from /home/mars/99Others/editly/examples/customCanvas.js
Did you mean to import ../../index.js?
    at new NodeError (node:internal/errors:371:5)
    at finalizeResolution (node:internal/modules/esm/resolve:412:17)
    at moduleResolve (node:internal/modules/esm/resolve:932:10)
    at defaultResolve (node:internal/modules/esm/resolve:1044:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_UNSUPPORTED_DIR_IMPORT',
  url: 'file:///home/mars/99Others/editly/'
}