Fix Windows CI: normalize absolute paths in SCSS @use/@import/@forward for Sass compatibility#85
Merged
Merged
Conversation
✅ Deploy Preview for to-tailwindcss canceled.
|
Owner
…or Sass compatibility On Windows, drive letters like C:/ in @use paths are misinterpreted as URL schemes by Dart Sass, causing 'Can't find stylesheet to import' errors. Extract the directory into loadPaths and rewrite to just the module name. Co-authored-by: Simon-He95 <57086651+Simon-He95@users.noreply.github.com> Agent-Logs-Url: https://github.com/Simon-He95/transformToTailwindcss/sessions/3d36196a-6917-47a4-88cd-ac5d5e21ffa3
Deploying transformtotailwindcss with
|
| Latest commit: |
79cce7d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://def16b4b.transformtotailwindcss.pages.dev |
| Branch Preview URL: | https://copilot-fix-sass-import-erro.transformtotailwindcss.pages.dev |
Copilot
AI
changed the title
[WIP] Fix issue with SCSS file import in sassCompiler
Fix Windows CI: normalize absolute paths in SCSS @use/@import/@forward for Sass compatibility
Mar 26, 2026
Align error handling with transformToUnoCSS PR #70: when Sass compilation fails, return the original CSS input instead of undefined so that transformVue can still process the style block. Co-authored-by: Simon-He95 <57086651+Simon-He95@users.noreply.github.com> Agent-Logs-Url: https://github.com/Simon-He95/transformToTailwindcss/sessions/8c2955bd-691e-4e84-b24b-e78cc31b49ad
Contributor
Author
Reviewed all three PRs and applied the same patterns:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dart Sass misinterprets Windows drive letters (
C:/) as URL schemes in@use/@import/@forwarddirectives, causing "Can't find stylesheet to import" on Windows CI. Same root cause as Simon-He95/transformToUnoCSS#68. Aligned with fix patterns from transformToUnoCSS PR #67, #69, and #70.src/sassCompiler.ts: Before compilation, detect absolute Windows paths in SCSS import directives, extract the parent directory intoloadPaths, and rewrite to just the basenamesrc/sassCompiler.ts: Return original CSS instead ofundefinedon Sass compilation errors, so thattransformVuecan still process the style block even when compilation fails (aligned with transformToUnoCSS PR chore(deps): update dependency stylus to v0.64.0 #70)test/sassCompiler.test.ts: Updated error case test expectation to match the new behavior of returning original CSS on failureOriginal prompt
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.