vue-routisan icon indicating copy to clipboard operation
vue-routisan copied to clipboard

Module parse failed: missing support for class properties at build-tool level

Open diego-lipinski-de-castro opened this issue 3 years ago • 3 comments

Code Screen Shot 2021-08-17 at 11 25 10

Compilation error Screen Shot 2021-08-17 at 11 24 11

"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.

mikerockett avatar Aug 17 '21 16:08 mikerockett

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.

mikerockett avatar Sep 25 '21 09:09 mikerockett

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.

mikerockett avatar Sep 25 '21 12:09 mikerockett