vue-routisan
vue-routisan copied to clipboard
Module parse failed: missing support for class properties at build-tool level
Code
Compilation error
"vue": "^3.0.0", "vue-router": "^4.0.0-0", "vue-routisan": "^3.0.0-beta.4", "vuex": "^4.0.0-0", "vuex-router-sync": "^5.0.0"
Thanks for reporting – quite right. I removed the build, not realising that environments might not support class properties.
In the meantime, please use https://babeljs.io/docs/en/babel-plugin-proposal-class-properties.
I'm thinking about rebuilding this in TypeScript, and distributing builds.
For the time being, I'm going to re-introduce the pre-build. I'd like to get a release of this out, and will consider TS support for v4.
I've released beta-5 which uses esbuild with an ESM target. This should work fine, though I'm considering it experimental as I don't know enough about esbuild overall.
Please let me know if this new release works for you.