vuetifyjs / vue-cli-plugins

🔌 A collection of Vuetify plugins for Vue CLI
https://vuetifyjs.com/en/getting-started/quick-start#vue-cli-3
Other
427 stars 113 forks source link

WARN conflicting versions for project dependency "sass-loader" - after vue create command #306

Closed ricardovanlaarhoven closed 2 years ago

ricardovanlaarhoven commented 2 years ago

When i use the vue create command, and after that the vue add vuetify i'm getting the following warning:

WARN  conflicting versions for project dependency "sass-loader":

- ^8.0.2 injected by generator "undefined"
- ^10.0.0 injected by generator "vue-cli-plugin-vuetify"

Using newer version (^10.0.0), but this may cause build errors.
ElijahKotyluk commented 2 years ago

Which preset is being selected when this occurs?

ricardovanlaarhoven commented 2 years ago

For vuetify the default/recommended for vue:

? Check the features needed for your project: Choose Vue version, Babel, TS, PWA, Router, Vuex, CSS Pre-processors, Linter, Unit, E2E
? Choose a version of Vue.js that you want to start the project with 2.x
? Use class-style component syntax? No
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? Yes
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS (with dart-sass)
? Pick a linter / formatter config: Prettier
? Pick additional lint features: Lint on save, Lint and fix on commit
? Pick a unit testing solution: Jest
? Pick an E2E testing solution: Cypress
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
ElijahKotyluk commented 2 years ago

Unfortunately due to the version of sass-loader being installed from Vue CLI we need to force the sass-loader dependency version to be >=10.1.0 to prevent a long list of Sass deprecation warnings in regards to using Math.div for division versus using /(Likewise for other math operations).

ricardovanlaarhoven commented 2 years ago

Are there any build errors known? Using newer version (^10.0.0), but this may cause build errors.

In my case everything seems to work, but perhaps we should take a look into that. Should we raise this issue to vue-cli?

reynard80 commented 2 years ago

Same problem here, only now with higher version numbers. Using vue-cli 5.0.1:

 WARN  conflicting versions for project dependency "sass-loader":

       - ^12.0.0 injected by generator "undefined"
       - ^10.0.0 injected by generator "vue-cli-plugin-vuetify"

       Using newer version (^12.0.0), but this may cause build errors.