-
Notifications
You must be signed in to change notification settings - Fork 7
AOT #2
Comments
@chuckbeasley could you tell me how to reproduce the error from the begining? |
Here's an example with angular-cli: $ ng new repro-case-ngui-tab
$ cd repro-case-ngui-tab
$ npm install --save @ngui/tab
$ nano src/app/app.module.ts
# add these where needed:
# import { NguiTabModule } from '@ngui/tab'; // on top
# NguiTabModule // imports
$ ng build
# notice one gets the following error:
# ERROR in NguiTabModule is not an NgModule
$ ng build --prod
# notice one gets the following error:
# ERROR in Unexpected value 'NguiTabModule in ..../node_modules/@ngui/tab/dist/tab.module.d.ts' imported by the module 'AppModule in ..../src/app/app.module.ts'. Please add a @NgModule annotation. This seems to be as the .d.ts file built by the TypeScript compiler lacks the decorators, and the compiler expects these to exist. It turns out that the NPM package doesn't include the .metadata.json files, and this is confusing the compiler - building with a newer |
Are there any plans to fix this? Same issue. |
any update on this? This error is preventing me from building --prod version on Ionic 3. I'm trying to include that missing .metadata.json file although I'm not sure how its contents should look like.... Please update. |
@blattersturm, would you be able to share a working .metada.json file for this component? or a full zip file containing .metadata.json file? please help. I have no idea what this metadata.json file should be... |
ERROR in : Unexpected value 'NguiTabModule in /Users/admin/Desktop/Angular/Tsupetot/node_modules/@ngui/tab/dist/tab.module.d.ts' imported by the module 'AppModule in /Users/admin/Desktop/Angular/Tsupetot/src/app/app.module.ts'. Please add a @NgModule annotation. |
When will AOT be supported. Currently when attempting to compile a project using AOT, the following error is received: "Unexpected value 'Ng2TabModule in .../node_modules/ng2-tab/dist/index.d.ts' imported by the module 'AppModule in ...'. Please add a @NgModule annotation.
The text was updated successfully, but these errors were encountered: