<p dir="auto">I am using standar symfony2 forms but I stuck with error displaying.</p>
<p dir="auto">I am trying to use form-&gt;getErrors() but it returns empty array (tested with var_dump), but if I use form-&gt;getErrorsAsString() I've got the errors.</p>
<p dir="auto">I use Angular 2 with Laravel. When the webpack check the typescript files, The "symfony\translation\Tests\fixtures\resources.ts" will be treat as a typescript file. Actually it's a xml file I think. So hope you can fix it,thank. (My English is poor, don't mind it). The error information as below:</p>
<details>
<summary>
<p dir="auto">See Error Stack Trace</p></summary><p dir="auto"></p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,2): error TS1110: Type expected.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,7): error TS1005: ':' expected.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,21): error TS1005: ';' expected.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,38): error TS1109: Expression expected.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(4,22): error TS1161: Unterminated regular expression literal.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(6,20): error TS1161: Unterminated regular expression literal.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(7,25): error TS1161: Unterminated regular expression literal.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(8,7): error TS1161: Unterminated regular expression literal.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(9,5): error TS1161: Unterminated regular expression literal.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(10,3): error TS1161: Unterminated regular expression literal.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(11,1): error TS1005: ':' expected.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,3): error TS2304: Cannot find name 'xml'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,7): error TS2304: Cannot find name 'version'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,21): error TS2304: Cannot find name 'encoding'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(2,2): error TS2304: Cannot find name 'TS'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(3,4): error TS2304: Cannot find name 'context'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(4,6): error TS2304: Cannot find name 'name'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(4,11): error TS2304: Cannot find name 'resources'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(5,6): error TS2304: Cannot find name 'message'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(6,8): error TS2304: Cannot find name 'source'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(6,15): error TS2304: Cannot find name 'foo'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(7,8): error TS2304: Cannot find name 'translation'.</p>
<p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br>
(7,20): error TS2304: Cannot find name 'bar'.</p>
</details>