royale-asjs icon indicating copy to clipboard operation
royale-asjs copied to clipboard

Compiling for prod generate error from debug-js

Open Incubatio opened this issue 7 years ago • 2 comments

Compiling with royale serve:prod seem to first compile js-debug, and second to compile (and not only minifying ?) js-prod from js-debug.

While doing second one, i get a chunk of WARNING and ERROR on the js-debug, such as: com.google.javascript.jscomp.LoggerErrorManager println SEVERE: [...]/RoyalProyekt/tests/bin/js-debug/org/apache/royale/utils/Language.js:12: ERROR - required "goog.DEBUG" namespace never provided goog.require('goog.DEBUG');

com.google.javascript.jscomp.LoggerErrorManager println SEVERE: [...]/RoyalProyect/tests/bin/js-debug/io/nfg/wmg/battle/modes/StayAlive.js:12: ERROR - required "io.nfg.wmg.battle.BattleLogic" namespace not provided yet goog.require('io.nfg.wmg.battle.BattleLogic');

Incubatio avatar Aug 23 '18 12:08 Incubatio

Do you still get these errors?

aharui avatar Jan 03 '19 19:01 aharui

I have the same issue. 13 errors like these: ERROR - required "openfl.display.Sprite" namespace never provided
goog.require('openfl.display.Sprite');

Debug build is fine, but prod fails. @Incubatio did you manage to fix this problem?

flashmandv avatar Feb 09 '23 07:02 flashmandv