Skip to content

Unable to import stylesheet from an npm package #17853

Answered by RobinMalfait
RobinClowers asked this question in Help
Discussion options

You must be logged in to vote

Hey!

For exposing CSS files you should either either use the style key:
https://app.unpkg.com/[email protected]/files/package.json#L16

Or use the file directly instead of using import / require:
https://app.unpkg.com/[email protected]/files/package.json#L53

If @blocknote/core is not your own package, I would recommend to open an issue or PR over there.

Hope this helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RobinClowers
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #17852 on May 02, 2025 21:44.