ValueError: Invalid properties specified for object of type plotly.graph_objs.Scatter: ('layout', 'data')

I have been receiving the titles warning since updating to Plotly 3.1. Previously my code worked on older iterations. The warning seems straight forward but I cannot seem to catch what is triggering it:
app.layout = html.Div([
html.Div([
html.Img(
src="***",
className=‘three columns’,

                style={
                    'height': '25%',
                    'width': '25%',
                    'float': 'right',
                    'position': 'relative',
                    'padding-top': -100,
                    'padding-right': 0
                },
            ),
    ]),
    html.Div(  className='row' , children=[                
        dcc.Graph(id='live-graph', figure=plotly.graph_objs.Scatter(
        data=go.Scatter(
                x=X,
                y=Y
               #name='scatter'
        ),
        layout=go.Layout(
                xaxis=dict(range=[min(X),max(X)]),
                yaxis=dict(range=[min(Y),max(Y)])
            )
        )
    )
])

])

-Thanks

Can you paste the entire error message?

Thanks for the response! The issue ended being something to do with my Dash not being updated to the current version. It all works fine thanks!