Skip to content

Fix missing loadConfig-export#876

Closed
andreaslillebo wants to merge 3 commits into
marcoroth:mainfrom
andreaslillebo:fix_load_config_error
Closed

Fix missing loadConfig-export#876
andreaslillebo wants to merge 3 commits into
marcoroth:mainfrom
andreaslillebo:fix_load_config_error

Conversation

@andreaslillebo

@andreaslillebo andreaslillebo commented Nov 14, 2025

Copy link
Copy Markdown

Fixes #852, #875

Tailwind V4 removed some exports, causing ERR_PACKAGE_PATH_NOT_EXPORTED when trying to import them.

I fixed this by making these imports dynamic, where we try to load v4 dependencies first, and fall back on v3 when not found.

I have not added any tests, as I'm not sure how to best test this.

@marcoroth

Copy link
Copy Markdown
Owner

Thanks @andreaslillebo, I'm not sure what the best way to test this is. I'll have to do some manual testing! Thank you!

@marcoroth marcoroth added the release-preview pkg.pr.new release previews https://github.com/stackblitz-labs/pkg.pr.new label Nov 16, 2025
@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2025

Copy link
Copy Markdown
npx https://pkg.pr.new/@herb-tools/formatter@876
npx https://pkg.pr.new/@herb-tools/language-server@876
npx https://pkg.pr.new/@herb-tools/linter@876

commit: b72ff40

@marcoroth

Copy link
Copy Markdown
Owner

Hey @andreaslillebo, thanks for checking this out, sadly it was a bigger feat and I opened #892 instead. Thanks for giving this a shot! 🙏🏼

@andreaslillebo

Copy link
Copy Markdown
Author

You're welcome. Thanks for fixing this so fast 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-preview pkg.pr.new release previews https://github.com/stackblitz-labs/pkg.pr.new tailwind-class-sorter typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatter: Cannot format document when project uses tailwindcss@4

2 participants