Skip to content

Vite plugin: setTimeout() in stylesPlugin.ts #225

@BreizhReloaded

Description

@BreizhReloaded

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions