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

🐛 BUG: Importing a Lit component breaks .scss imports #3508

Closed
1 task
jon-loubert opened this issue Jun 2, 2022 · 2 comments · Fixed by #3511
Closed
1 task

🐛 BUG: Importing a Lit component breaks .scss imports #3508

jon-loubert opened this issue Jun 2, 2022 · 2 comments · Fixed by #3511

Comments

@jon-loubert
Copy link

jon-loubert commented Jun 2, 2022

What version of astro are you using?

v1.0.0-beta.38 and astrojs/lit 0.1.4

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

Importing a local SCSS file (i.e. import '../test.scss';) in an Astro component fails (500 error) as soon as any Lit component is imported in the same .astro file.

I used the Astro.new "integrations playground" as a starting point for these:

When I reproduce this issue locally, I can see in my server stack trace: error Preprocessor dependency "sass" failed to load: once I cause the error.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-pb8eis-xyyw8g?file=src/pages/index.astro

Participation

  • I am willing to submit a pull request for this issue.
@natemoo-re
Copy link
Member

Thanks for opening an issue! This is a known problem with Lit that is being tracked upstream.

See lit/lit#2393 and the previous closed Astro issue #2623

@natemoo-re
Copy link
Member

Actually, I'm going to reopen this to be closed by #3511

@natemoo-re natemoo-re reopened this Jun 2, 2022
@natemoo-re natemoo-re linked a pull request Jun 2, 2022 that will close this issue
natemoo-re added a commit that referenced this issue Jun 2, 2022
* fix(#2623, #3508): patch lit server shim to allow sass compat

* chore: add changeset
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