kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
646 stars 106 forks source link

On kedro-viz UI startup error: instance.graphNew is not a function #1913

Open jitu5 opened 1 month ago

jitu5 commented 1 month ago

Description

Error occures on running Kedro-viz UI locally

TypeError: instance.graphNew is not a function

Screenshot 2024-05-20 at 4 06 13 p m

Steps to Reproduce

  1. Checkout kedro-viz locally
  2. npm install
  3. make build
  4. make run and npm start
  5. Till this point it works as expected
  6. kill process make run and npm start
  7. Re run make run and npm start

Context

This could be related to Node 18 / react-scripts update.

Expected Result

It should run successfully every time after make run & npm start

Actual Result

After rerun of make run it gives below error

graph.js:36 Uncaught (in promise) TypeError: instance.graphNew is not a function
    at layout (graph.js:36:1)
    at worker.js:58:1
    at graph.js:53:1
    at Object.dispatch (index.js:16:1)
    at Object.dispatch (<anonymous>:6:7384)
    at store.js:19:1
    at index.js:17:1
    at Object.dispatch (redux.js:297:1)
    at s (<anonymous>:3:5093)
    at index.js:20:1

Your Environment

Include as many relevant details as possible about the environment you experienced the bug in:

Checklist

rashidakanchwala commented 1 month ago

I got this error as well. I thought it was something to do with my PR.