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

can't run examples #276

Closed
Moanrisy opened this issue Feb 10, 2024 · 1 comment
Closed

can't run examples #276

Moanrisy opened this issue Feb 10, 2024 · 1 comment

Comments

@Moanrisy
Copy link

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/'
}

@bkeepers
Copy link
Collaborator

@Moanrisy This should be fixed after #310. Give it a try and let me know if it's still broken for you.

$ cd examples && ./run customCanvas.js

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

2 participants