Closed vstoykov closed 7 years ago
Even after #18 (ng2-split-module 1.2.1) I still get this error.
Ok, I haven't been able to re-produce this error.
However, please could you try installing the latest beta version and see if that resolves it?
npm install ng2-split-pane@beta
This version is build using ngc, and contains metadata files for AoT, so I'm hoping this resolves it.
Many thanks.
@vstoykov In my humble opinion, this looks more like an issue with your application. Can you submit something that reproduces the issue?
Good news up-front, the issue seems to be solved using the latest version 1.3.0!
Steps to reproduce the issue with ng2-split-pane version 1.2.1:
Retest with 1.3.0:
Same here, 1.2.1 did't work but 1.3.0 did
Ahaaa, indeed it looks the library packaging process was the issue then - I've been working on the typescript files directly (src-folder) and not from the lib folder.
I have just released 1.3.1 (same codebase but "latest" tag instead of "beta") which fixes this. Thanks for your contributions & help resolving this.
I tried the latest version, 1.3.1 and it gave me "ERROR in SplitPaneModule is not an NgModule". I then installed ng2-split-pane@1.3.0 which compiled fine.
I get "ERROR in SplitPaneModule is not an NgModule" after "npm install ng2-split-pane@'1.4.0'".
Ha! Actually it works every now and then. It seems that I can jiggle things and get it working like this:
Step 2 causes webpack to rerun, successfully.
Theory: Angular misses some state change caused by the "npm install", but picks it up the second time.
This happens when I run
ng serve
orng build
.The funny part is that when I run
ng serve
I just need to save something in the project in order to rebuild live server and everything starts working. The problem is that I can't build it.When I run
ng build -prod
the error is little different but related:I found this issue in angular-cli https://github.com/angular/angular-cli/issues/4447 and problem is caused by requirement of AOT compilation of 3th party modules.
This issue is probably duplicate of #4 #13 and #14 but I just wanted to write it in order to link all related stuff and probably to be easy for others when search with error message provided by angular cli to land here instead of wasting time looking everywhere on internet.