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

Recompile stops after error in imported SCSS file #168

Closed
SpicyRicecaker opened this issue Feb 17, 2021 · 1 comment · Fixed by #173
Closed

Recompile stops after error in imported SCSS file #168

SpicyRicecaker opened this issue Feb 17, 2021 · 1 comment · Fixed by #173

Comments

@SpicyRicecaker
Copy link

I have the following code below, using the default sveltejs/template-webpack template

<style lang="scss">
  @use 'styles';
</style>

When editing the styles.scss file, reloads are triggered on change just fine, until a mistake is made inside the scss file.
After the webpack compilation error, editing the styles.scss file no longer causes any changes, and direct edits must be made to the .svelte file to trigger further reloads.

This issue only happens on webpack, presumably with the svelte loader, rollup handles changes to the scss file after an error just fine...

I think it's similar to #72 in a way, except only after compilation error

@non25
Copy link
Contributor

non25 commented Mar 20, 2021

@SpicyRicecaker Reproduced and fixed the issue.
In a meantime you can use master branch which contains this fix:

yarn add -D svelte-loader@sveltejs/svelte-loader
# or
npm i -D sveltejs/svelte-loader

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