title: ExperimentalWarning: Conditional exports is an experimental feature"
body: <p>I am getting this in error in node js while running a server. The error is as follows</p>
  <blockquote>
  <p>&quot;(node:17160) ExperimentalWarning: Conditional exports is an
  experimental feature&quot;. This feature could change at any time&quot;?</p>
  </blockquote>
  <p>Full details can be found <a href="https://i.stack.imgur.com/jZGwS.png" rel="nofollow noreferrer">here</a></p>
  <p>Any idea how to solve this? I am getting it in the terminal while running the nomemon server.js. My codes are as follows:</p>
  <p>Here is mine:</p>
  <p>Server.js</p>
  <pre><code>const express = require('express')
  const app = express()
  const server = require('http').Server(app)
  const io = require('socket.io')(server)
  const { v4: uuidV4 } = require('uuid')
  
  app.set('view engine', 'ejs')
  app.use(express.static('public'))
  
  app.get('/', (req, res) =&gt; {
    res.redirect(`/${uuidV4()}`)
  })
  
  app.get('/:room', (req, res) =&gt; {
    res.render('room', { roomId: req.params.room })
  })
  
  io.on('connection', socket =&gt; {
    socket.on('join-room', (roomId, userId) =&gt; {
      socket.join(roomId)
      socket.to(roomId).broadcast.emit('user-connected', userId)
  
      socket.on('disconnect', () =&gt; {
        socket.to(roomId).broadcast.emit('user-disconnected', userId)
      })
    })
  })
  
  server.listen(3000)
  </code></pre>
  <p>script.js</p>
  <pre><code>const socket = io('/')
  const myPeer = new Peer(undefined, {
      host:'/',
      port:'3002'
  })
  myPeer.on('open', id =&gt; {
      socket.emit('join-room', ROOM_ID, id)
  })
  
  socket.emit('join-room', ROOM_ID, 10)
  
  socket.on('User-connected', userId =&gt; {
      console.log('User-connected:' + userId)
  })
  </code></pre>
  <p>Room.ejs</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;title&gt;Just Not a Document&lt;/title&gt;
      &lt;script&gt;
          const ROOM_ID = &quot;&lt;%= roomId %&gt;&quot;
        &lt;/script&gt;
        &lt;script defer src=&quot;https://unpkg.com/peerjs@1.3.1/dist/peerjs.min.js&quot;&gt;&lt;/script&gt;
  
        &lt;script src=&quot;/socket.io/socket.io.js&quot; defer&gt;&lt;/script&gt;
        &lt;script src=&quot;script.js&quot; defer&gt;&lt;/script&gt;
        &lt;style&gt;
          #video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, 300px);
            grid-auto-rows: 300px;
          }
          
          video {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id=&quot;video-grid&quot;&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>