After upgrade to angular 5.0.0 the following error is emcountered:
Uncaught Error: Template parse errors:
"let-" is only supported on ng-template elements. ("
ngx-bootstrap: 1.9.3
Angular: 5.0.0
Bootstrap: 3.3.7
Angular CLI 1.5.0, + [email protected]
Thanks!
Sorry, but when serving my app with --aot option like in ng serve --aot, i now see all kinds of warnings concerning private properties that should be public:
Property 'xxx' is private and only accessible within class 'yyyyComponent'.
Using ng serve only is working, but that is not acceptable in our production env.
Which components are throwing errors?
DatepickerModule, RatingModule and TypeaheadModule
Show any error complete error stack, I am sure it's private properties in your components, not ngx-bs
I am still getting error for
"let-" is only supported on ng-template elements.
Even though i have updated my ngx-bootstrap with [email protected]
@saurabhThawari sample repo or plunkr/stackblitz with reproduction please
You can use one of starter templates:
Plunkr: https://plnkr.co/edit/0NipkZrnckZZROAcnjzB?p=preview
StackBlitz: https://stackblitz.com/edit/ngx-bootstrap?file=app%2Fapp.module.ts
thanks for the reply, issue has been resolved, I was using both ng2-bootstrap and ngx-bootstrap ,I used Ng2BootstrapModule from ng2-bootstrap in app.module , and I had removed that Module from app.module with ng2-bootstrap dependencies in package.json and issue got resolved
@saurabhThawari please could you elaborate more what the 'fix' was for you? I am stuck in the same problem.
I still couldnt get this to work, even though I followed up on advice from this issue like Use [email protected].
...any help is appreciated
https://stackoverflow.com/questions/47866158/let-is-only-supported-on-ng-template-elements
+1
@leifwalder , I have added both the ng2-bootstrap and ngx-bootstrap in "dependencies" under pakage.json file, thats why I was stuck with the issue, removing of ng2-bootstrap from the dependencies helped to resolve my issue
I am having this issue. But I am not using both ng2-bootstrap and ngx-bootstrap.
You should use ngx-bootstrap v2+