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

Error occurs when setting icon in notification #63

Closed
1 task done
kajeagentspi opened this issue Jul 5, 2018 · 3 comments
Closed
1 task done

Error occurs when setting icon in notification #63

kajeagentspi opened this issue Jul 5, 2018 · 3 comments

Comments

@kajeagentspi
Copy link

kajeagentspi commented Jul 5, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

0.6.7

Environment

latest

Reproduction link

Edit on CodeSandbox

Steps to reproduce

import notification in a non vue file such as a vuex store
then use notification.success or others

What is expected?

no errors

What is actually happening?

Uncaught (in promise) ReferenceError: h is not defined
at Object.notice [as open] (antd.js?d678:46758)
at Object.api.(anonymous function) [as error] (webpack-internal:///./node_modules/vue-antd-ui/dist/antd.js:46802:16)
at Store._callee2$ (galaxy.js?43b8:59)
at tryCatch (runtime.js?96cf:62)
at Generator.invoke [as _invoke] (runtime.js?96cf:296)
at Generator.prototype.(anonymous function) [as next] (webpack-internal:///./node_modules/regenerator-runtime/runtime.js:114:21)
at step (asyncToGenerator.js?3040:10)
at _next (asyncToGenerator.js?3040:25)


I'm trying to replicate this action from a react redux duck

export const getAdtypes = query => ({
type: GET_STUFF,
promise: Api.getStuff(query),
meta: {
onFailure: () => {
notification.error({
message: 'Server error while getting stuff.',
});
},
},
});

tangjinzhou added a commit that referenced this issue Jul 5, 2018
@tangjinzhou
Copy link
Member

@kajeagentspi
Copy link
Author

Thanks

tangjinzhou added a commit that referenced this issue Sep 5, 2018
@lock
Copy link

lock bot commented Jul 6, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants