4.10 cannot package the project

I can package the project by opening the editor direclty with the .uproject. This issue only happens when I try to package the game from the edittor opened from visual studio