Page 1 of 1

undeclared variable bgagame in fresh project

Posted: 23 October 2024, 21:41
by Absolute_Vacuum
Hi all,

I am following the reversi tutorial. I literally just started the fresh project, and it already does not work. I haven't change the .js file at all. However, I receive the following error while trying to boot the game:

Uncaught ReferenceError: assignment to undeclared variable bgagame

In the .js file, I see the following line:

bgagame = { cornersproject: CornersProject };

Without any var, let, or const. the function above seems to perform this:

define("bgagame/cornersproject", ...)

What am I doing wrong? Is the default template broken?

Re: undeclared variable bgagame in fresh project

Posted: 25 October 2024, 08:04
by Nico_KYF
Hello.

I have the same issue here with a fresh project.
Table won't load because of undeclared bgagame !

thanks
nico

Re: undeclared variable bgagame in fresh project

Posted: 25 October 2024, 16:05
by GTSchemer
One of the BGA staff checked in the wrong file by accident. It seems to still be breaking new projects, but it is Friday night France time so I am unsure when they may notice the reports and fix it. Or maybe it will be fixed but they are waiting on a deploy.

Re: undeclared variable bgagame in fresh project

Posted: 26 October 2024, 03:03
by ufm
Try copying 'EmptyGame' project meanwhile. It worked for me.