Skip to content

ng-xi18n throwing exception #12268

Closed
Closed

Description

@altreze

I'm submitting a ... (check one with "x")

[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
Hi,
I followed the i18n documentation for its implementation within my application but the ng-xi18n throw the exception below :

I am having i18n attribute in places like :

  <span>
    <label i18n>Domain</label>
    <input [(ngModel)]="account.domain" type="text" name="domain" class="form-control" i18n>
  </span>
$ node_modules/.bin/ng-xi18n -p src/tsconfig.json --i18nFormat=xmb
Error: parameters received {"filePath":"./node_modules/@angular/common/src/location/location.d.ts","name":"Location"} which is not a StaticSymbol
    at StaticReflector.parameters (.\node_modules\@angular\compiler-cli\src\static_reflector.js:92:19)
    at CompileMetadataResolver.getDependenciesMetadata (.\node_modules\@angular\compiler\bundles\compiler.umd.js:14190:56)
    at CompileMetadataResolver.getTypeMetadata (.\node_modules\@angular\compiler\bundles\compiler.umd.js:14155:28)
    at .\node_modules\@angular\compiler\bundles\compiler.umd.js:14298:43
    at Array.forEach (native)
    at CompileMetadataResolver.getProvidersMetadata (.\node_modules\@angular\compiler\bundles\compiler.umd.js:14278:21)
    at .\node_modules\@angular\compiler\bundles\compiler.umd.js:14285:43
    at Array.forEach (native)
    at CompileMetadataResolver.getProvidersMetadata (.\node_modules\@angular\compiler\bundles\compiler.umd.js:14278:21)
    at CompileMetadataResolver.getNgModuleMetadata (.\node_modules\@angular\compiler\bundles\compiler.umd.js:14037:60)
Extraction failed

Please tell us about your environment:

Windows 10 - win32 x64
Sublime Text 3
npm 3.10.3
Angular-cli: 1.0.0-beta.17
Webpack 2.1.0-beta.25

  • Angular version: 2.0.X
  • Language: [ TypeScript Version 2.0.3 ]
  • Node (for AoT issues): node --version = v6.5.0

Activity

  1. paumayr commented on Oct 14, 2016

    @paumayr

    this issue was fixed for me by upgrading to Angular 2.1.0, due to #12158. Also be sure that @angular/compiler-cli is updated to 2.1.0 (took me a bit to realize it was not updated, because it was at 0.6. before).

  2. angular-automatic-lock-bot commented on Sep 10, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  3. locked and limited conversation to collaborators on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions