thaitq
                
              
                
                
              
                  
                  
              1
              
             
            
              
const io = require("socket.io-client");
const socket = io("ws://localhost:3001");
socket.on("connect", () => {
  console.log(socket.id)
})
I only just call this and the error already show. Please help.
             
            
              
              
              
            
            
           
          
            
            
              UXP isn’t Node and so you can’t use modules without using a bundler such as Webpack.
             
            
              
              
              1 Like