Issues on exported build

Godot Version

Godot 4.3

Question

I’m having issues when I try to run my exported project.

When running the game in the editor, everything seems to work as expected.
But when I run an exported executable (Windows EXE), a lot of issues occur and stuff breaks.

Most issues seem to be related with the exported game not finding references (failing to load/instance packed scenes)

I’ve changed the directory structure of my project recently, so I suspect it’s some hidden/broken reference paths (example res://old_dir/ instead of res://new_dir/ when exporting ).

Where can I look to fix this?

Just an update: I found a few old references and fixed those, but it didn’t fix any of my issues. Is there a way to completely rebuild/recompile “from source” or something similar?

Follow up on this:
I was able to find the issue: One of my autoload/global scripts had a line using
EditorInterface which caused issues. Removing this fixed my initial issue.