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

Module NodeNext : TS2349: This expression is not callable #185

Open
elvince opened this issue Nov 20, 2023 · 2 comments
Open

Module NodeNext : TS2349: This expression is not callable #185

elvince opened this issue Nov 20, 2023 · 2 comments

Comments

@elvince
Copy link

elvince commented Nov 20, 2023

hi,

when using nodenext as module in tsconfig, I can't call anymore slugify function.

Could you please fix the export so it is compatbile?

import slugify from 'slugify';
file.name = slugify(file.name);

Thanks,

@bhavesh-chaudhari
Copy link

Any update on this? Having the same issue.

@twelch
Copy link

twelch commented Mar 5, 2024

See workaround in #173

donovanglover added a commit to donovanglover/base16-tailwind that referenced this issue Apr 16, 2024
Fixes an issue where slugify was breaking with deno publish since the
TypeScript exports for slugify don't have support for modern tooling.

For future reference, the specific error message was:

TS2349 [ERROR]: This expression is not callable.
  Type 'typeof import("./node_modules/slugify/slugify.d.ts")' has no call signatures.

Upstream issue: simov/slugify#185
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

3 participants