SamGoody / tailwind-children

Tailwind plugin which enables setting CSS rules for all children in parent
GNU Affero General Public License v3.0
74 stars 6 forks source link

Cannot find module 'tailwindcss-children' #4

Closed tonyYo00 closed 2 years ago

tonyYo00 commented 2 years ago

Cannot find module 'tailwindcss-children' in next.js

SamGoody commented 2 years ago

I am guessing that this related to the fact fact that the ES6 module dynamically links the commonjsmoule, which is the same issue as #1

There are three solutions I can think of:

  1. Compile for cjs on each release instead of linking it. I will probably do this.
  2. Someone who knows next or vite can tell me how to use them :)

Am merging this into the other issue. Have been extremely busy in work the past few weeks, but will hopefully have another release soon solving this and the other issue.

SamGoody commented 2 years ago

@tonyYo00 I have pushed a change that should fix this, but don't know how to test.

Can you test and let me know how it goes?

SamGoody commented 2 years ago

The issue is that the package is called tailwind-children, not tailwindcss-children.

The documentation was wrong, and kudos to @ericpedia for picking it up.

Have updated the docs, and will close the issue. But thanks for pointing it out.