弃用警告:grpc.load

时间:2018-09-28 12:21:40

标签: node.js reactjs webpack socket.io

我正在构建一个通过socket.io使用客户端-服务器通信和服务器-谷歌云平台通信的应用程序。对于前端部分,我使用的是React,其中有两个组件。

但是在编译时出现以下错误:

Server is listening on port: 1337
(node:21711) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::1337
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)
    at Server.setupListenHandle [as _listen2] (net.js:1355:14)
    at listenInCluster (net.js:1396:12)
    at Server.listen (net.js:1480:7)
    at Object.<anonymous> (/Users/raulvilloravalencia/OneDrive - Universidad Politécnica de Madrid/Documents/cp-test-app-2/cp-test-app/server.js:172:8)
    at Module._compile (module.js:652:30)
    at loader (/Users/raulvilloravalencia/OneDrive - Universidad Politécnica de Madrid/Documents/cp-test-app-2/cp-test-app/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous

0 个答案:

没有答案