Closed sinangulsever closed 4 years ago
Hey. Did you check the order of your store and router imports as the error suggests?
" - Make sure the store is imported before the router, then reload" how can i do this in nuxt js
Vuex
Oh crap, I forgot about Nuxt!
Not 100% sure about this one (it's been a long time since I looked at the source) but can you try making the module and its calls, namespaced? Do you know how to do that?
PS. easier to post real code then I can make alterations and post back.
OK - it seems this might b a bug in Nuxt that is still not fixed:
The solution is to NOT use wildcards.
This will make your code clearer, anyway.
Wildcards are useful, mainly for large options sets, but better to make your code explicit.
I removed the wildcard characters.
Component
This time it gave a different error
Ah, sorry... you will need to specify the properties manually (rather than using the *
character, which effectively says "please get all properties"), so:
computed: {
...sync('userbilgi', [
'name',
'lastname',
])
}
Unable to expand wildcard path 'userbilgi/*':
Nuxt component
Store folder
Store module
Console error
Why does this problem occur?