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

Cannot find module 'npm-tailwind' or its corresponding type declarations.ts(2307) #250

Open
enzzzooo opened this issue Jan 23, 2025 · 0 comments

Comments

@enzzzooo
Copy link

enzzzooo commented Jan 23, 2025

Error
Cannot find module 'npm-tailwind' or its corresponding type declarations.ts(2307)

Hi, I installed Yalc using npm i yalc -g and did

yalc publish

yalc add npm-tailwind

when I npm ls I get

├── [email protected] invalid: "file:.yalc/npm-tailwind" from the root project

npm error code ELSPROBLEMS
npm error invalid: [email protected] /workspaces/npm-tailwind-package/demo/node_modules/npm-tailwind

and I npm i which removes the error.
├── [email protected] -> ./.yalc/npm-tailwind

and npm run build && yalc push to push new changes.

Here is my package.json. The page that I import the local yalc module into. And the npm-tailwind pacakge package.json
But still I get the above error. Why? I tried deleting node_modules and package-lock.json with no success.

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