Closed suenot closed 5 years ago
Thanks for your feedback!
vue cli 3 doesn't support decorated class property out of box, u may need to add the proposal-class-properties
plugin to babel configuration as the error message said.
Thanks, you really help me.
With this babel.config.js
vue-cli
works with mobx-vue
:
module.exports = {
presets: [
'@vue/app'
],
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
Need some start boilerplates vue with mobx-vue. I tried to put to work vue-cli 3.0.4 (vue 2.5.17) with mobx-vue 2.0.7 and mobx 5.5.0 with babel or ts and had unsolved problems with decorators: