How to implement a local Inter Process Communication in Vue.app?

Hi people,
I have a C application that creates a UNIX socket in /tmp/server.socket. This is server-side.
Locally I have the Vue.app that is my web frontend. This is the client-side.
I want that Vue.app connects into that socket /tmp/server.socket to receive/transmit data.
Then with Vuex, all components will interact.

I had used the node-ipc in basic examples (not in a Vue.app) and works very well.
But now when I create a simple instance of node-ipc my application is not renderized and I received an error on browser console.

main.js :

import '@fortawesome/fontawesome-free/css/all.css'
import Vue from 'vue'

import App from './App.vue'

import './config/bootstrap'
import './config/msgs'
import './config/axios'
import './config/mq'

import store from './config/store'
import router from './config/router'

Vue.config.productionTip = false

const ipc = require('node-ipc') // <<<=== What is the problem here ?
ipc.config.id = 'test';

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')

Error on console browser :

Someone could help me what is the problem or tell me the best directions to implement this kind of communication?

Thanks a lot