vue : version "2.5.16"
vuetify : version "1.0.10"
Please help me in this issue, i try to overwrite VNavigationDrawer Component
i using the postcss-rtl to flip the css design
ERROR Failed to compile with 1 errors12:19:59 AM
error in ./node_modules/vuetify/src/util/helpers.js
Module parse failed: Unexpected token (34:28)
You may need an appropriate loader to handle this file type.
| context.data.on = context.data.on || {}
| if (!Object.isExtensible(context.data.on)) {
| context.data.on = { ...context.data.on }
| }
|
@ ./node_modules/vuetify/src/mixins/positionable.js 1:0-52
@ ./node_modules/vuetify/src/mixins/applicationable.js
@ ./node_modules/vuetify/src/components/VNavigationDrawer/VNavigationDrawer.js
@ ./libraries/components/my-navigation-drawer.js
@ ./plugins/components.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js
// Mixins
import VNavigationDrawer from 'vuetify/src/components/VNavigationDrawer/VNavigationDrawer'
export default {
name: 'my-navigation-drawer',
mixins: [VNavigationDrawer],
props: {
rtl: Boolean
},
computed: {
calculatedTransform() {
if (this.isActive) return 0
if (this.rtl) {
return this.right ? -this.calculatedWidth : this.calculatedWidth
}
return this.right ? this.calculatedWidth : -this.calculatedWidth
}
}
}
Please follow our issue template (https://issues.vuetifyjs.com/) and submit the issue again. It helps us get all the info we need to help you the best we can.
You need to either:
@KaelWD Thank you so much you save my day, it works using the first suggestion (import from es5 instead of src).
Most helpful comment
You need to either: