Hi, great library. I've tried the following steps on Angular CLI 1.5.2 and 1.5.5:
ng new scrollimate-test
cd scrollimate-test
npm install ng2-scrollimate --save
ng build --prod
The above succeeds, however if I add import {Ng2ScrollimateModule} from 'ng2-scrollimate'; to the top of app.module.ts and add Ng2ScrollimateModule to the module imports list, and then run ng build --prod again, I get the following error:
ERROR in ./node_modules/ng2-scrollimate/dist/src/ng2-scrollimate.directive.js
Module build failed: TypeError: Cannot read property 'kind' of undefined
It works fine without --prod and works fine running under ng serve. Removing Ng2ScrollimateModule also makes it work again.
Interestingly if I bring the four typescript files from your src directory into my project as a local module it also works fine.
Hi, great library. I've tried the following steps on Angular CLI 1.5.2 and 1.5.5:
The above succeeds, however if I add
import {Ng2ScrollimateModule} from 'ng2-scrollimate';to the top ofapp.module.tsand addNg2ScrollimateModuleto the module imports list, and then runng build --prodagain, I get the following error:It works fine without
--prodand works fine running underng serve. Removing Ng2ScrollimateModule also makes it work again.Interestingly if I bring the four typescript files from your
srcdirectory into my project as a local module it also works fine.