vuetify-loader: Vite plugin: setTimeout() in stylesPlugin.ts
Hello,
I get This variable was not declared with !default in the @used module when overriding component Sass variables. It’s not always the same variable, and the build goes sometimes through. It’s less common a on small project than on a bigger one. When it crashes, the .scss cache file it not complete.
I couldn’t find a defined protocol to reproduce the error all the time (working on it), but I can say at the moment that it’s not OS-related (tested on Windows, WSL and Ubuntu).
That seems to happen randomly, which is quite annoying. After some analysis, it seems to be related with the setTimeout() call in stylesPlugin.ts. Setting a bigger time value reduces my build error rate. What is this call made for? Why 500ms exactly?
Thanks!
Edit: obviously working with the alpha 9, and using the latest Vuetify nightly.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (11 by maintainers)
Commits related to this issue
- fix: wait for all other modules to resolve before writing styles fixes #225 — committed to vuetifyjs/vuetify-loader by KaelWD 3 years ago
Ok I guess that’s fixed then. In alpha 10 I also added an option to configure the timeout just in case.