Skip to content

fix: Cannot set property application of #<Object> which has only a getterΒ #172

@quezadaesteban

Description

@quezadaesteban

πŸ› The bug

The app breaks at lunch.

πŸ› οΈ To reproduce
Creating a project with yarn create nuxt-app someapp and installing nuxt-typed-vuex. After adding it to the build modules, when launching the app it shows the black loading spinner and in the console it says:

TypeError: Cannot set property application of #<Object> which has only a getter
    at eval (index.es.js?9e80:53)
    at Array.forEach (<anonymous>)
    at createAccessor (index.es.js?9e80:52)
    at useAccessor (index.es.js?9e80:58)
    at eval (index.es.js?9e80:61)
    at Array.forEach (<anonymous>)
    at useAccessor (index.es.js?9e80:59)
    at eval (index.es.js?9e80:66)
    at _callee$ (nuxt-typed-vuex.js?679e:8)
    at tryCatch (runtime.js?96cf:63)

I've tried many things, I'm using the helper functions in every module, I even sent and empty getAccessorType({}) and it stills shows the error in the console. It only disappears when removing the nuxt-typed-vuex from the buildModules.

🌈 Expected behaviour
It should not show any error.

ℹ️ Additional context
It is the only buildModule I'm using aside from '@nuxt/typescript-build' and '@nuxtjs/vuetify' that come with the installation.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds reproThis issue needs code that can reproduce the issue.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions