CUModSquad / Camelot-Unchained

UI repository for Camelot Unchained, a tri-realm RvR MMORPG.
Mozilla Public License 2.0
7 stars 25 forks source link

Correct compile time warnings generated for *TargetState models #269

Closed Mehuge closed 5 years ago

Mehuge commented 5 years ago

Example of the warning being generated.

WARNING in D:/dev/CU/Mehuge/Camelot-Unchained/library/lib/game/GameClientModels/EnemyTargetState.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* D:\dev\CU\Mehuge\Camelot-Unchained\node_modules\babel-loader\lib\index.js??ref--4-oneOf-1-0!D:\dev\CU\Mehuge\Camelot-Unchained\library\lib\game\GameClientModels\EnemyTargetState.js
    Used by 1 module(s), i. e.
    D:\dev\CU\Mehuge\Camelot-Unchained\node_modules\babel-loader\lib\index.js??ref--4-oneOf-1-0!D:\dev\CU\Mehuge\Camelot-Unchained\library\lib\game\GameClientModels\index.js
* D:\dev\CU\Mehuge\Camelot-Unchained\node_modules\babel-loader\lib\index.js??ref--4-oneOf-1-0!D:\dev\CU\Mehuge\Camelot-Unchained\library\lib\game\GameClientModels\EnemytargetState.js
    Used by 1 module(s), i. e.
    D:\dev\CU\Mehuge\Camelot-Unchained\node_modules\babel-loader\lib\index.js??ref--4-oneOf-1-0!D:\dev\CU\Mehuge\Camelot-Unchained\library\lib\game\initGameInterface.js

From that I was able to determine the issue was in initGameInterface.ts. This change removes two such warnings.

There are some other module case warnings, but I have not figured out what is causing those.