addRecipe in mutations is returning an erro when adding an item.
saeid78 opened this issue · 3 comments
saeid78 commented
Hello,
Thanks for this nice tutorial! However there is an error on the add item when orderRecipe method gets clicked! it throws an error like "[vuex] unknown action type: addRecipe"
I could not figure it out.
Thanks.
ratracegrad commented
Send me a link to your code and I will look into it. It is looking for an
action in the store called addRecipe and it is not there. Either you have
not added or spelled it slightly differently.
Jennifer Bland
sent from my rotary phone
…On Thu, Jan 24, 2019 at 7:39 PM saeid rahmani ***@***.***> wrote:
Hello,
Thanks for this nice tutorial! However there is an error on the add item
when orderRecipe method gets clicked! it throws an error like "[vuex]
unknown action type: addRecipe"
I could not figure it out.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJyZSQPxNfTlPhNS371Z7TrfsQgw5wUvks5vGlIvgaJpZM4aR-5i>
.
saeid78 commented
Hi,
Well, at first I used my code and got the same error . Then I downloaded
your code and it throws the same error.
Best.
On Thu, Jan 24, 2019, 8:05 PM Jennifer Bland <notifications@github.com
wrote:
… Send me a link to your code and I will look into it. It is looking for an
action in the store called addRecipe and it is not there. Either you have
not added or spelled it slightly differently.
Jennifer Bland
sent from my rotary phone
On Thu, Jan 24, 2019 at 7:39 PM saeid rahmani ***@***.***>
wrote:
> Hello,
> Thanks for this nice tutorial! However there is an error on the add item
> when orderRecipe method gets clicked! it throws an error like "[vuex]
> unknown action type: addRecipe"
> I could not figure it out.
> Thanks.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#2>, or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AJyZSQPxNfTlPhNS371Z7TrfsQgw5wUvks5vGlIvgaJpZM4aR-5i
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKOxLY4opxWwf2QUB-FWWZzgPiBG4_Rkks5vGlhSgaJpZM4aR-5i>
.
saeid78 commented
Hi again,
I sorted out the action in the store.js file and it's working now!
Thanks.
On Thu, Jan 24, 2019 at 8:05 PM Jennifer Bland <notifications@github.com>
wrote:
… Send me a link to your code and I will look into it. It is looking for an
action in the store called addRecipe and it is not there. Either you have
not added or spelled it slightly differently.
Jennifer Bland
sent from my rotary phone
On Thu, Jan 24, 2019 at 7:39 PM saeid rahmani ***@***.***>
wrote:
> Hello,
> Thanks for this nice tutorial! However there is an error on the add item
> when orderRecipe method gets clicked! it throws an error like "[vuex]
> unknown action type: addRecipe"
> I could not figure it out.
> Thanks.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#2>, or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AJyZSQPxNfTlPhNS371Z7TrfsQgw5wUvks5vGlIvgaJpZM4aR-5i
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKOxLY4opxWwf2QUB-FWWZzgPiBG4_Rkks5vGlhSgaJpZM4aR-5i>
.