AOT not updating? "Failed to define GetMember#" from old Variables

Resolved.
Find Graphs that hold the links and delete them.

How do I get rid of these Errors

“Failed to define GetMember#”

They reference old variables I used to reference from my C# scripts but I now have deleted.
I’ve tried updating Unity to 2021.3.3f1 and get the latest version of Visual Scripting.

Remove the nodes in your graphs that reference the deleted scripts. That’s the only way.

Thanks. Yes I did that now I get

“Importer(PrefabImporter) generated inconsistent result for asset”

For some of my prefabs.

I haven’t come across that prefab issue. Are you sure it’s related to Visual Scripting?

I’m not sure. I’ll close this one

A temporary solution is to restore the variables mentioned in the warning text.
The useless variables will continue to remain in the script, but I do not know of a fundamental solution.

I tried resetting and regenerating the type options, but this did not solve the problem.

I have discovered the root cause.
As the warning message said, the disconnected node remained in the graph.
But I had a very hard time finding it, and discovered it by accident.
The reason for the difficulty was that the problematic node existed in a graph embedded in a prefab.
In this case, it is not possible to find it with the node finder.

The best way to avoid this situation is to avoid using embedded graphs.
Embedded graphs are easy to implement, but when they cause unexpected problems, they make it difficult to find the cause.

I hope that the warning message can be improved so that we can locate the node in question.
It seems that the GUID can be used as a clue to find it, but it seems like a difficult method for unity newbies using visual scripting.

Nodes are serialized (saved) in the graph. Resetting or regenerating type options doesn’t impact nodes already serialized in graphs, it only determine what comes up in fuzzy finder. So the only options are either to find the faulty nodes and remove them or restore missing script dependencies.