Skip to content

relative imports not supported with i18n #3015

Description

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
$ ng --version
angular-cli: 1.0.0-beta.19-3
node: 6.9.1
os: win32 x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

  • Added baseUrl for relative imports
  • Relative import in a component, e.g. import { TermsAndConditions} from 'app/termsandcondition'
  • ng serve works fine.
  • Adding i18n attribute and running ng-xi18n:
    $ ng-xi18n
    Error: Unexpected value 'TermsAndConditions' exported by the module 'SharedModule'

Activity

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