Quick answer: Godot 4 export to a path with spaces failing template substitution? Some template scripts don't quote paths - use spaceless directory or escape.

Export to 'Game Builds/' fails with template error. Same setup with 'GameBuilds/' works.

Use spaceless paths

Always export to no-space paths. Avoids the class entirely.

Or update template scripts

If you maintain templates, quote paths in scripts. Fix at source.

Document the limitation

Project README: don't use spaces in build paths. New contributors learn.

“Build scripts often assume paths without spaces. Don't fight; conform.”

Adopt 'no spaces in build paths' as a convention. The fix is upstream; the workaround is downstream.

Related reading