Open flmng0 opened 1 year ago
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: Cannot read properties of undefined (reading 'source')
Thank you @joshnuss for helping me debug and finding this 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 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