For some reason you are running an old version of TikzGraphs which only works with graphs from the (deprecated) LightGraphs package. This is possibly caused by adding all packages to your global environment and you have something in there which holds you back to old versions of certain packages, due to compatibility constraints.
If you use a clean environment, e.g. by doing pkg> activate --temp before adding Graphs and TikzGraphs, the example code should work.
You need to do that in a new session where you haven’t already loaded some earlier version of the package and you have to add the packages to the temporary environment; otherwise they will still be loaded from your global environment.
Thank you very much, this worked.
In the process I also learnt that packages can have conflicts. It seems to me that LightGraphs is the offender. To avoid having to load a temporary workspace every time and installing packages, is there any way I can remove LightGraphs ? Or do I need to re-install Julia ?