Fixed this.markChanged
not defined
#2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In dev mode (with hot module reloading), making changes to a .scss file that is imported from another .scss file triggers the following error:
For example, if
index.js
importsindex.scss
which importssomething.scss
, then making a change tosomething.scss
would trigger the above error during live reloading.This is due to @snowpack/plugin-sass calling this.markChanged().
this.markChanged()
is a valid snowpack plugin method that is available inside plugin hooks. But since this directly calls theonChange()
sass plugin hook, I believe it is not forwarded.This change fixed the error mentioned above.