yuanchuan / sveltekit-autoimport

Automatically detect and import components/modules for SvelteKit projects
https://npm.im/sveltekit-autoimport
MIT License
231 stars 10 forks source link

Import Fails with SCSS nesting #17

Closed stolinski closed 2 years ago

stolinski commented 2 years ago

Still working on a reproduction of this one, but I found an interesting issue.

Using a auto imported <Button> I found that a line in my css causes the build to fail.

.search-button {
  margin-top: 0.5rem;
  padding-right: 1rem;
}

So straight up deleting that search button css would fix this issue.

stolinski commented 2 years ago

Now I'm seeing this with any nested scss, so it may not be the class name as suspected, but something with nesting scss. Def something weird in the