wannabegeek / ng2-split-pane

Split View module for Angular 2
MIT License
43 stars 25 forks source link

Run ng build --prod throws errors #14

Closed ginocarrascomori closed 7 years ago

ginocarrascomori commented 7 years ago

Hi, I'm using your version 1.1.0, I've had this problem and it affects my build when I run the command ng build --prod. So I tried a workaround for this and do the following.

import { SplitPaneModule } from 'ng2-split-pane/src/ng2-split-pane'; instead of import { SplitPaneModule } from 'ng2-split-pane/lib/ng2-split-pane';

After that, because I still had some error messages when I run the command, I removed the @Component decorators in the split-pane-separator.component.ts and the split-pane.component.ts of the node package and then it started to build succesfully. Split was not affected by this change, it works without problem.

Please, let me know if you could make this change if it doesn't affect your code.