Missing dist/styles.css in @payloadcms/[email protected] despite package.json export #12232
Unanswered
dwarmerdam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Anyone else having trouble with this?
In version 3.35.1 of @payloadcms/richtext-lexical, the main stylesheet (styles.css) appears to be missing from the published package's dist directory. This prevents importing the necessary base CSS for rendering the Lexical editor components correctly outside of the Payload admin panel.
The package.json for this version explicitly defines an export for ./css pointing to ./dist/styles.css:
"exports": { // ... other exports ... "./css": "./dist/styles.css", // ... other exports ... },
However, when inspecting the installed package contents within node_modules/@payloadcms/richtext-lexical/dist/, the styles.css file is not present. (Confirmed via local file system checks / ls command).
Furthermore, the build configuration (tsup.config.ts) in the source repository indicates the intention to copy src/styles.css to dist/styles.css during the build process.
Beta Was this translation helpful? Give feedback.
All reactions