Skip to content

Conversation

@thecrypticace
Copy link
Contributor

Fixes #1217

This issue kinda reveals that the entire detection around "project roots" or "root stylesheets" needs to be rethought because files at the top of a CSS graph may not actually be the intended stylesheet — especially when @reference is used. But… like anything… they also might be.

In the meantime we'll "prefer" files we can detect as definite root stylesheets before trying other files.

@thecrypticace thecrypticace marked this pull request as ready for review February 18, 2025 12:36
@thecrypticace thecrypticace changed the title Try “roots” first instead of discarding non-roots Fix detection when project contains stylesheets that import the "main" stylesheet Feb 18, 2025
@thecrypticace thecrypticace merged commit 07252bd into main Feb 18, 2025
@thecrypticace thecrypticace deleted the feat/fix-root-detection branch February 18, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.14.5 Fails with "no matching project for document" on standard nextjs/react project

3 participants