According to the official installation: npm i mint-ui@1 -S
This is a newly created scaffolding
Error message
I tried other components but it didn’t work. But console.log(Toast); can print out information.
It has been used before and it can be used. I don't know why I can't use it.
The installation problem has been solved. Just install it with cnpm and it will work.
你这是按需引入,需要配置webpack,全局引入就不会了具体看一下官网
【Portal】