Open wonder95 opened 4 years ago
Same here ... 🤦🏻♂️
@wonder95 I was able to fix the issue for myself by upgrading from Node 11 to Node 12 and running npm ci
. No longer getting the validation error. Hope it works for you.
Hmmmm, I'm on node version 14.4.0. I'll try npm ci
to see if that helps.
@wonder95 - Turns out the issue is still persisting - That actually didn't fix it - About to pull out my hair @championswimmer - Any ideas on what we should try to fix this?
@wonder95 Figured it out! For some reason, my project was missing the vuex
library. Doing an npm install vuex
fixed the issue for me!
Dang, that was it. you da MAN!! Thanks for letting me know.
Im having exactly the same issue, but I did add the vuex
library... still failling.
Me too @alvarosaburido, did you find any solution?
My code:
import { VuexModule, Module, getModule } from 'vuex-module-decorators'
import store from '@/store'
import { Users, Profile } from '../models'
@Module({
namespaced: true,
name: 'users',
store
})
class UsersModule extends VuexModule {
users: Users | null = null
profile: Profile | null = null
}
export default getModule(UsersModule)
I was able to fix it by upgrading node 10 to node 12
same problem here, using esnext
I am attempting to use
vuex-module-decorators
with Typescript in a Vuex module, but I am unable to add thenamespaced
andname
options to the@Module
decorator. I can add@Module
by itself, but as soon as I try to add theoptions
, I get this error message:Here is the module:
One suggestion made to me was that I should use named exports instead of default exports, but no matter how I change the export, I still get the same error. What am I doing incorrectly?