Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.$store.getters.cosmos.staking.v1beta1/getParams is not a function #125

Closed
fadeev opened this issue Oct 25, 2021 · 10 comments
Closed

this.$store.getters.cosmos.staking.v1beta1/getParams is not a function #125

fadeev opened this issue Oct 25, 2021 · 10 comments
Assignees
Labels
bug Something isn't working high-priority

Comments

@fadeev
Copy link
Contributor

fadeev commented Oct 25, 2021

and somewhy keplr wallet connect does not work for me:

TypeError: this.$store.getters.cosmos.staking.v1beta1/getParams is not a function
    at Proxy.<anonymous> (starport-vue.common.js:11007)
    at u (starport-vue.common.js:44537)
    at Generator._invoke (starport-vue.common.js:44767)
    at Generator.next (starport-vue.common.js:44592)
    at O (starport-vue.common.js:4311)
    at a (starport-vue.common.js:4333)
    at starport-vue.common.js:4340
    at new Promise (<anonymous>)
    at Proxy.<anonymous> (starport-vue.common.js:4329)
    at Proxy.t (starport-vue.common.js:11095)

From Discord.

@clockworkgr
Copy link
Collaborator

this.$store.getters['cosmos.staking.v1beta1/getParams'] iirc

@berelton
Copy link

image

@marinhoarthur
Copy link
Contributor

Hi @berelton

Could you share a print of your vue/src/store/generate folder (i.e. the content of generated)?

@TrashCoder96
Copy link

Hello, i got the same errors. This is my generated folder:
generated.zip

index.ts

// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY.



export default { 
  
}


function load(mod, fullns) {
    return function init(store) {        
        if (store.hasModule([fullns])) {
            throw new Error('Duplicate module name detected: '+ fullns)
        }else{
            store.registerModule([fullns], mod)
            store.subscribe((mutation) => {
                if (mutation.type == 'common/env/INITIALIZE_WS_COMPLETE') {
                    store.dispatch(fullns+ '/init', null, {
                        root: true
                    })
                }
            })
        }
    }
}

package.json

{
  "name": "rr-bcp-core-js",
  "version": "0.1.0",
  "description": "Autogenerated cosmos modules vuex store",
  "author": "Starport Codegen <hello@tendermint.com>",  
  "license": "Apache-2.0",
  "licenses": [
    {
      "type": "Apache-2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0"
    }
  ],
  "main": "index.js",
  "publishConfig": {
    "access": "public"
  }
}

@clockworkgr
Copy link
Collaborator

@ilgooz @fadeev it seems like the scaffolding clears the store/generated/cosmos folder downloaded along with the template and doesn't rebuild it

@berelton
Copy link

berelton commented Oct 26, 2021

@marinhoarthur I have same content as @TrashCoder96 showed

do you have some temporary workaround?

@clockworkgr
Copy link
Collaborator

@marinhoarthur I have same content as @TrashCoder96 showed

do you have some temporary workaround?

running starport chain serve with the --proto-all-modules flag may work I think

@berelton
Copy link

@marinhoarthur I have same content as @TrashCoder96 showed
do you have some temporary workaround?

running starport chain serve with the --proto-all-modules flag may work I think

this does not help :(

@marinhoarthur marinhoarthur added bug Something isn't working high-priority labels Oct 27, 2021
@marinhoarthur
Copy link
Contributor

@berelton @TrashCoder96 we're currently investigating this and will post any updates here.

FYI this is the root issue.

I'll be following up this closely so that it's fixed asap.

@marinhoarthur
Copy link
Contributor

marinhoarthur commented Oct 29, 2021

There is a new release patching this. Please upgrade your Starport to v0.18.2

Let us know how that works out.

@berelton @TrashCoder96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority
Projects
None yet
Development

No branches or pull requests

5 participants