Skip to content
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

Open
flmng0 opened this issue Jul 11, 2023 · 1 comment
Open

Breaks when the source file only contains @at rules. #40

flmng0 opened this issue Jul 11, 2023 · 1 comment

Comments

@flmng0
Copy link

flmng0 commented Jul 11, 2023

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

@argyleink
Copy link
Member

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 👍🏻

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 a pull request may close this issue.

2 participants