Broken target-script-min.js when using debug mode.

  • 2
  • Problem
  • Updated 4 years ago
  • Solved
Using debug mode inserts broken script if server http://debug1.build.phonegap.com/targ... is used.

http://debug2.build.phonegap.com/targ... looks just fine.
Photo of Jonas Daad Hanström

Jonas Daad Hanström

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 2
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hi Jonas

What do you mean with "... insert broken script in server" ? Which part is broken?
Photo of Jonas Daad Hanström

Jonas Daad Hanström

  • 2 Posts
  • 0 Reply Likes
IF you use the first url in a browser you will notice that the script source is broken and not complete, if you compare the two (debug1.... Vs debug2.... Urls)

When using debug mode the app will be built with script src tag using one of them, and since the one on debug1.build... Is broken the script won't work.
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hi Jonas

Thank you for your valuable input. I can confirm it too!

Please watch / subscribe at the following bug report for status update.
https://github.com/phonegap/build/iss...

Thank you!
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
fixed!
Photo of Svante Jacobsen

Svante Jacobsen

  • 34 Posts
  • 1 Reply Like
I see the exact same problem today - I recon this explains why debug fails just about half the time and has done so for months.

target-script-min.js @ /debug1/ : contains just the letter "u"
link: http://debug1.build.phonegap.com/targ...

target-script-min.js @ /debug[^1]/ : a full non-minified weinre js script
link: http://debug2.build.phonegap.com/targ...
link: http://debug3.build.phonegap.com/targ...
Photo of Svante Jacobsen

Svante Jacobsen

  • 34 Posts
  • 1 Reply Like
I can see debug1 site has been fixed now. I have no current debug projects to verify though.