Git prompt this. $message is not a function?

Find the main.js component in the vue file and re-run it with the following code:

import ElementUI from 'element-ui'
Vue.use(ElementUI)

Read More: