I'm really hoping to get some help here. I have inheriteda a vue/.net core project from a guy who quit and I/we are not quite sure how to upgrade vuetify successfully. I have done a lot of googling without managing to figure out exactly how to proceed..
Where I am at this point is that I have performed the following steps to upgrade. In the "terminal" in VS Code I have run the following commands:
- npm install vuetify@latest ( I see the value for vuetify in webpack.config change to "vuetify": "^2.1.12")
- npm audit fix (because the terminal suggested it)
- npm run build (just to make sure it builds)
So, the error I get at this point when trying to browse a vue-page is: Error: Vuetify is not properly initialized
At this point I edit the file app.js (which seems to be the entry point for the application) and change the line "import Vuetify from "vuetify";" to "import Vuetify from 'vuetify/lib'" (as suggested by vuetify documentation for "Releases and migrations"). The error that now occurs is:
ERROR in ./node_modules/vuetify/src/components/VCalendar/mixins/calendar-with-events.sass 1:0 Module parse failed: Unexpected character '@' (1:0) You may need an appropriate loader to handle this file type. @import '../../../styles/styles.sass' | @import '../_variables.scss'
ERROR in ./node_modules/vuetify/src/components/VDatePicker/VDatePickerHeader.sass 1:0 Module parse failed: Unexpected character '@' (1:0) You may need an appropriate loader to handle this file type. @import '../../styles/styles.sass' | | +theme(v-date-picker-header) using ($material)
And the error list seem to go on for every type of vuetify component used in the project
So that's where I'm stuck now. I can't get past this error. I have found some threads suggesting to add "rules" to webpack.config.js but I have not managed to get any of them to work. I'm in desperate need of help actually. This project does not seem to be set up using any "standard suggested way" in any of the threads/articles I've come across and being a .net developer originally all this webpack stuff seems really complicated and I would need some guidance..
My app.js:
import Vue from "vue"; import axios from "axios"; import router from "./router/index"; import store from "./store/store"; import { sync } from "vuex-router-sync"; import App from "components/app-root"; import { FontAwesomeIcon } from "./icons"; import Editor from "@tinymce/tinymce-vue" Vue.component("icon", FontAwesomeIcon); Vue.component("tinymce-editor", Editor) Vue.prototype.$http = axios; sync(store, router); import globalMixins from "./components/common/mxins/global" Vue.mixin(globalMixins) //import Vuetify from "vuetify"; import Vuetify from "vuetify/lib"; Vue.use(Vuetify, { theme: { myColor: "#545454" } }); import "vuetify/dist/vuetify.min.css"; Vue.use(require("vue-shortkey")); var VueCookie = require('vue-cookie'); Vue.use(VueCookie); Vue.use(VueSanitize, vueSanitizeOptions); Vue.use(require('vue-moment')); const app = new Vue({ store, router, ...App }); export { app, router, store }; 
Styles. It says that you need to installsaaspackage and NOTnode-sass. Can u check if u are using the correct saas package?