You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use new feature meta.apply($mixin) it's work fine with plain build scss via ./node_modules/.bin/sass ./src/mixins.scss output.css but doesn't work via run vite or via vite build
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Do you mean the Error: Bad state: Can't access __parent outside of a module. error? Seems like it's caused by Vite using the deprecated sass render method. I'm not sure if this is intentional, but I'll report this upstream to check.
If it's intentional, the progress to check when we migrate to the new compileString api is #7116. So I'll close this for now in favour of the two things above.
Describe the bug
I'm trying to use new feature meta.apply($mixin) it's work fine with plain build scss via
./node_modules/.bin/sass ./src/mixins.scss output.css
but doesn't work via runvite
or viavite build
mixins.scss looks like
output
It's works fine in scss playground.
https://sass-lang.com/playground/#eJwzNHQoLU5VUCpOLC62yk0sULLmQhZILUkEinA55GZWZOYpFOfnpvqCWBqaCtVcCgpJicnZ6UX5pXkpVgpJOaWp1ly1XFx6IBZY2iEzLzmnNCVVAWSMXmJBQU6lBpiZnlqiCzZRQwlupJKmJlA7AP6ULtQ=
Reproduction
https://stackblitz.com/edit/vitejs-vite-bvdyzt?file=src%2FApp.vue
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: