Open samuveth opened 3 years ago
You should install "vuex-composition-helpers@next" with vue3. There are several differences that needed a major update for the package.
@davidmeirlevy I did that, I'm on ^2.0.0
Any updates?
It seems like your code is failing due to the usage of optional chaining.
as you can see, your error is:
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
and it's regarding the line: return vm.proxy?.$store;
you probably need node 14+, and to accept optional chaining.
As mentioned on babl, it's already included in the latest version of @babel/preset-env
when using ES2020
:
https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
Its common practice for people to exclude node_modules from being processed by babel because running all your dependencies through a transpiler makes your builds much longer. Could you update your compile target to not include features like this?
How was this resolved guys?
I'm trying to use this package with my vue-3 app and the composition api, but I'm running into this error. Any ideas?
Version:
"vuex-composition-helpers": "^2.0.0",