Topic: mdb error in nuxt vue
Expected behavior
In the mdb pro version, it is used in the nuxt folder, which operates only the mdbvue folder. After a while, while applying the 'sideNav', an unknown error appeared and I couldn't find a way to solve it.
help please. i want to use mdb pro perfectly
Actual behavior ERROR in ./mdbvue/src/index.js friendly-errors 17:44:50
Syntax Error: Identifier 'mdbMonthView' has already been declared (123:23) friendly-errors 17:44:50
121 | import Sticky from './directives/Sticky'; 122 | import Calendar, { mdbCalendar } from './components/pro/Calendar/Calendar';
123 | import mdbMonthView, { mdbMonthView } from './components/pro/Calendar/MonthView'; | ^ 124 | import mdbListView, { mdbListView } from './components/pro/Calendar/ListView'; 125 | import mdbWeekView, { mdbWeekView } from './components/pro/Calendar/WeekView'; 126 | friendly-errors 17:44:50 @ ./node_modules/@nuxt/webpack/node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/worker.vue?vue&type=script&lang=js& 67:0-41 137:12-18 138:13-20 @ ./pages/worker.vue?vue&type=script&lang=js& @ ./pages/worker.vue @ ./.nuxt/router.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js
Resources (screenshots, code snippets etc.)
Mikołaj Smoleński staff answered 5 years ago
I am confused. Your issues are connected with the MDB Admin Template Pro, but you're writing about MDB Pro package. I guess you bought two packages and some files mixed up. In fact, the mdbCalendar is not a pro component. It's available only in MDB Admin Template. Please reinstall the package carefully and let us know if the issue still exists.
Best regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: 5.8.1
- Device: pc
- Browser: chrome
- OS: window
- Provided sample code: No
- Provided link: No