simov / slugify

Slugifies a string
MIT License
1.47k stars 126 forks source link

Cannot find module 'slugify' or its corresponding type declarations. #189

Closed naimulemon closed 2 months ago

naimulemon commented 2 months ago

Sure, here's a draft for the GitHub issue description:

Issue Description: When attempting to import the 'slugify' module in my project, I encounter the error message: "Cannot find module 'slugify' or its corresponding type declarations." This prevents me from utilizing the functionality provided by the 'slugify' module within my project.

Steps to Reproduce: Attempt to import 'slugify' module in a TypeScript project. Observe the error message: "Cannot find module 'slugify' or its corresponding type declarations." Expected Behavior: The 'slugify' module should be successfully imported without any errors, allowing me to utilize its functionality within my project.

Actual Behavior: Encounter an error stating that the module or its corresponding type declarations cannot be found.

Trott commented 2 months ago

It sounds like you are trying to use slugify without installing it.

I'm going to close this because there's not enough specific information to debug the issue. If you want to see it reopened, perhaps share your package.json, your code file, and the command you are running when you get the error.

Trott commented 2 months ago

More information about some of the many, many things that might be causing this: https://stackoverflow.com/q/64732623

naimulemon commented 2 months ago

I install it and also try is multiple times but the result is same error

On Thu, May 2, 2024, 12:23 AM Rich Trott @.***> wrote:

It sounds like you are trying to use slugify without installing it.

I'm going to close this because there's not enough specific information to debug the issue. If you want to see it reopened, perhaps share your package.json, your code file, and the command you are running when you get the error.

— Reply to this email directly, view it on GitHub https://github.com/simov/slugify/issues/189#issuecomment-2088880402, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYITYHO6ESKRR7XJ2MW2CKTZAEXINAVCNFSM6AAAAABHCH34COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYHA4DANBQGI . You are receiving this because you authored the thread.Message ID: @.***>

Trott commented 2 months ago

I install it and also try is multiple times but the result is same error

What's in your package.json and the file importing slugify?

naimulemon commented 2 months ago

It works! ☺️

Thank you so much for your help

On Thu, May 2, 2024, 12:26 AM Rich Trott @.***> wrote:

I install it and also try is multiple times but the result is same error

What's in your package.json and the file importing slugify?

— Reply to this email directly, view it on GitHub https://github.com/simov/slugify/issues/189#issuecomment-2088885059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYITYHJBTUOOBIU3BHPQWWTZAEXV5AVCNFSM6AAAAABHCH34COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYHA4DKMBVHE . You are receiving this because you authored the thread.Message ID: @.***>