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

gif2webp --help Error [ERR_UNSUPPORTED_DIR_IMPORT] #12

Open
holidaypenguin opened this issue Feb 24, 2023 · 1 comment
Open

gif2webp --help Error [ERR_UNSUPPORTED_DIR_IMPORT] #12

holidaypenguin opened this issue Feb 24, 2023 · 1 comment

Comments

@holidaypenguin
Copy link

Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'D:\ProgramFiles\nvm\v16.13.0\node_modules\gif2webp-bin\' is not supported resolving ES modules imported from D:\ProgramFiles\nvm\v16.13.0\node_modules\gif2webp-bin\cli.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:///D:/ProgramFiles/nvm/v16.13.0/node_modules/gif2webp-bin/'
}
import gif2webp from '.';

to

import gif2webp from './index.js';

is ok

@holidaypenguin
Copy link
Author

node 16.13.0

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