The solution of this. $message is not a function

import { Message } from 'element-ui'
Vue.use(Message)
Vue.prototype.$message = Message

Read More: