使用女服务员后Dash在开发服务器上不起作用

时间:2020-07-22 13:57:01

标签: python python-3.x plotly-dash

我有一些破折号的应用程序在开发服务器上运行良好:

app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
if __name__ == '__main__':
    app.run_server(debug=True)

我想尝试女服务员以了解尝试的差异:

from waitress import serve
if __name__ == '__main__':

    # app.run_server(debug=True)
    serve(app.server, threads=100, port=8080)

哪个工作正常。但是,当我尝试再次使用开发服务器时,在打开本地主机时出现此错误:

Failed component prop type: function Div(props) {
  return _react2.default.createElement(
    'div',
    _extends({
      onClick: function onClick() {
        if (props.setProps) {
          props.setProps({
            n_clicks: props.n_clicks + 1,
            n_clicks_timestamp: Date.now()
          });
        }
        if (props.fireEvent) props.fireEvent({ event: 'click' });
      }
    }, props),
    props.children
  );

在未修改的同一环境中的以前的破折号应用程序中会发生这种情况。我做了什么?

谢谢

更新: 示例脚本也不起作用,例如Hello Dash https://dash.plotly.com/layout

0 个答案:

没有答案
相关问题