Can't bundle project (unknown source error) (SOLVED)

When I attempt to bundle my project for Android or HTML5 suddenly I am getting an Unknown source Line 1: Expected identifier error. Since the source is unknown I have no idea what file is causing this issue and the project is quite large at this point… Has anyone encountered this or have a general way of investigating this bundle issue?

1 Like

Are you using any native extensions?
You can see if you got a “log.txt” file in your build folder in your project.

1 Like

I am using one but hasn’t been changed since the project started. I checked the Android build folder but the bundle process isn’t generating a new log.txt file (the one there is from yesterday when bundling was still working)

We write here that the log.txt is in the build.zip. Is that incorrect @JCash?

There’s a log.txt file in my Android build.zip folder. The issue for me is that the bundle process doesn’t get far enough to even generate a new build.zip

@britzl the build.zip is unzipped immediately after a remote build /successful or not)

Perhaps you can share the project?

1 Like

I figured it out. There were some temp files left by my graphics editor (Krita) in the assets folder which broke the build process. After clearing them out it’s now functioning again. I also changed some logic elsewhere in the code but nothing that I think should affect the build since it was playing fine in debug/build mode for PC.

2 Likes

Do you remember the extension of those temp files?

2 Likes

Yes it was .png~

1 Like

If you encounter this again there’s a good chance if you bundled with bob directly it would have listed that file in the console. It would be worth testing to see if it catches it (the editor still needs to catch it too).

1 Like