Exporting as an npm package not working #2924
-
Hello plate community! Tailwind styles are being applied, i tested adding underline to a h1 text and it works as expected. Might be some issue in the React/Ts/Js layer or build, because some props on the Editor aren't working as defined on the package and the emoji dropdown is also broken. For example, i set focusRing=false on my editor component, but when importing and using in other projects, it has the focusRing active. I did look up for the bug, and tested:
I'm using a React component called RichTextEditor with Plate, Fixed Toolbar and Editor. To export the package, i'm using: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
The Are these class names being applied in the HTML generated by React? Is Tailwind outputting CSS for these class names? |
Beta Was this translation helpful? Give feedback.
This entry isn't valid. It needs to be a glob pattern matching specific files, not a directory. Something like
./node_modules/YOUR_PACKAGE/dist/*.js
, or whatever is necessary to match the set of source files containing your Tailwind class names.This grep command might help figure out which files to include: