Closed eguvenc closed 8 months ago
bump..
found similar issue here: https://github.com/vuetifyjs/vuetify-loader/issues/326 i also got into this issue after updating to vite@5 & vite-plugin-vuetify@2
only option i found until now is to disable warnings for nodejs with enviroment variable NODE_NO_WARNINGS=1 but this will hide all warnings not only the experimental stuff :(
thanks i use this solutions for now
"scripts": {
"dev": "VITE_CJS_IGNORE_WARNING=true vite --host --mode dev",
"build": "VITE_CJS_IGNORE_WARNING=true vite build --mode prod",
"preview": "VITE_CJS_IGNORE_WARNING=true vite preview",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src"
},
{
"scripts": {
"dev": "cross-env NODE_OPTIONS='--no-warnings=ExperimentalWarning' vite --open --host",
"build": "cross-env NODE_OPTIONS='--no-warnings=ExperimentalWarning' vite build",
},
}
I get this warnings when i try to install vuetify() plugin for Vite 5
Here is the demo repo. https://github.com/eguvenc/vite5/
ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js
Here is my vite.config.mjs file.
My package.json file
Here is the demo repo. https://github.com/eguvenc/vite5/