-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pagination-service.d.ts error TS1005: Build:'=' expected #81
Comments
Hi, What version of Angular and this library are you using? |
Hi, I have the same problem, and same error messages. I use Angular 2.0.1 and ng2-pagination 0.5.1. |
Sorry, couldn't reply before, same versions from here. I fixed downgrading the version of ng2-pagination. |
Thanks @ialex90. That worked for me too. |
Hi, |
Hi, Version 0.4.1 worked for me. |
Thanks LasseBurn. Now the problem is I am getting ' http://localhost:3000/ng2-pagination 404 (Not Found)' error. |
@Sk421 You are importing the components instead the module, that's wrong. Have a look here: |
Thanks for your reply @ialex90 |
@Sk421 please, provide more info about the error, paste it here and the code for the ngmodule too. |
App.module.ts file import { NgModule } from '@angular/core'; imports: [ declarations: [ bootstrap: [ AppComponent ] Error: |
Thanks for your replies @ialex90 and @LasseBrun . I have solved the problem. I added a script file in index.html. |
@Sk421 Happy to help even this wasn't the best place for that. Let's not forget the subject of the problem, |
Hi. Great to see people stepping in to help one another, thanks 👍🏼 Re the original issue, I'll have time later this week to look into it. Is everyone here using systemjs? |
Hi, Yes, I'am using systemjs. |
@michaelbromley me too, thanks :) |
I have the feeling that this problem could be solved with the latest version of Typescript, and that just happen in lower than TS 2.0.x, Can you check if that works for you @LasseBrun ? |
I use TS 2.0.3. But it might be something wrong with my gulp-typescript. I'll take a closer look at it tomorrow! |
@ialex90 The line that your original error points to is: readonly defaultId: string; This suggests to me that the error is due to the fact that this lib is now built with TypeScript 2.x, and perhaps your version of TypeScript is older and does not understand the Check into that. |
@michaelbromley this might be helpful: ng-bootstrap/ng-bootstrap#904 (comment) :) |
@ialex90 Thanks, that's good info. So in the next release I will make it compatible with TS 1.8+. 👍 |
Hi there,
I am having troubles with the typings of the library, I've been looking for the typings in the typing source but they are not there, they are in the dist folder.
So, if I am running the project by node, there is not problem, but when I am running up with Visual Studio. I get 2 errors:
I tried to include the typings on the bootstrap file unsuccessfully. Any idea? Thanks!
The text was updated successfully, but these errors were encountered: