-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Comments
tangjinzhou
added a commit
that referenced
this issue
Jul 5, 2018
please update to 0.6.8 |
Thanks |
tangjinzhou
added a commit
that referenced
this issue
Sep 5, 2018
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
0.6.7
Environment
latest
Reproduction link
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.',
});
},
},
});
The text was updated successfully, but these errors were encountered: