-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular-devkit/build-angulardevkit/build-angular:i18nfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokenstate: blockedtype: bug/fix
Milestone
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- [ X ] xi18n
- run
- config
- help
- version
- doc
Is this a regression?
No
Description
When running xi18n
command on my application
, that imports my library
i get the following error:
ERROR: Unexpected value 'SharedModule in /Users/****/Code/my-app/dist/@shared/lib/shared.module.d.ts' imported by the module 'CoreModule in /Users/****/Code/my-app/libs/my-core/src/lib/core.module.ts'. Please add a @NgModule annotation.
But this is only happening when my lib is pre-build with Ivy option set to true
, otherwise everything is fine.
🔬 Minimal Reproduction
ng new my-app
ng g lib my-lib
- build
my-lib
- import
my-lib
intomy-app
s module - run
ng xi18n
formy-app
🔥 Exception or Error
`ERROR: Unexpected value 'SharedModule in /Users/****/Code/my-app/dist/@shared/lib/shared.module.d.ts' imported by the module 'CoreModule in /Users/****/Code/my-app/libs/my-core/src/lib/core.module.ts'. Please add a @NgModule annotation.`
🌍 Your Environment
`@angular/* version 9.0.0-rc-4 or 0.900.0-rc-4`
Anything else relevant?
Nope
klemenoslaj and PowerKiKi
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulardevkit/build-angular:i18nfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokenstate: blockedtype: bug/fix