Vue-socket.io error report is introduced in vue in the way of vue.use ()

I am in the environment of webpack+vue-cli
introduce vue-socket.io and socket.io-client plug-ins into main.js as follows:

clipboard.png

:

clipboard.png

May.23,2022

Vue.use(new VueSocketIO({
    debug: true,
    connection: 'http://metinseylan.com:1992',
    vuex: {
        store,
        actionPrefix: 'SOCKET_',
        mutationPrefix: 'SOCKET_'
    }
}))

read more documents


I would like to ask you if there was a mistake when your project was introduced into the vue-socket.io final npm run build packaging project? I prompt js/chunk-vendors.5ef81a47.js from UglifyJs
Unexpected token: punc (() [js/chunk-vendors.5ef81a47.js:84977,9227]

)

did you meet it? How to solve it

Menu