Skip to content

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

Open
@enzzzooo

Description

@enzzzooo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions