Skip to content

Commit

Permalink
issue #149: Added @NgModule declarations to prevent error "NgSemantic…
Browse files Browse the repository at this point in the history
…Module is not an NgModule"
  • Loading branch information
Boris Feldmann committed Feb 10, 2017
1 parent 0a5da26 commit bd1b011
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ng-semantic.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ export * from "./src/shape/shape";
export * from "./src/accordion/accordion";
export declare let SEMANTIC_COMPONENTS: Array<any>;
export declare let SEMANTIC_DIRECTIVES: Array<any>;

import { NgModule } from "@angular/core";
@NgModule({
declarations: [NgSemanticModule]
})
export declare class NgSemanticModule {
}

1 comment on commit bd1b011

@sushanzh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Boris, I had the same error "NgSemanticModule is not a NgModule". After adding the lines of code into the ng-semantic.d.ts, it works on my local machine now. But I need to be able to commit to TFS to be promoted to server. Do you know when the fix will be included in the next ngSemantic release? Thank you.

Please sign in to comment.