-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaks when the source file only contains @at rules. #40
Comments
this still happening? i'd love a stackblitz or recreatable env for me to test, poke and prod for how to guard or fix the issue 👍🏻 |
Hey @argyleink when you get a chance can you please take a look at this repo: https://github.com/NazCodeland/viewport-screenshot-website I've been trying to get postcss-jit-props to work with open-props but I keep running into the following error: Thank you @joshnuss for helping me debug and finding this issue. |
I've taken a look, tried some things, and feel pretty confident that Svelte 5 isn't sending any CSS to the plugin. The error reported "reading source", is that the CSS source the plugin expects is undefined, aka there's nothing to postcss-jit-prop. I'm feeling like this is a Svelte5 configuration thing, and I'm not up to date enough to figure out what to do there. I can however offer an alternative path, and a hot tip about postcss-jit-props and CSS modules:
|
Thank you, I’ll follow the suggected alternative if size becomes an issue. |
Hello!
When processing a source file which only contains at-rules, the plugin breaks.
From my error code and brief skim, it seems to occur from Line 123 of
index.js
.The error reported reads as:
Cannot read properties of undefined (reading 'source')
.The problem file in question is a file from open-props:
open-props/media.css
.I will do a workaround and create a pull request once I get home.
Thanks
The text was updated successfully, but these errors were encountered: