Open LoscaraDK opened 8 years ago
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/title/title.component.ts (37,25): error TS7006: Parameter 'fieldConf' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/pager/pager.component.ts (67,21): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/filter/filter.component.ts (40,10): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts (36,12): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts (41,11): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.sorter.ts (3,31): error TS7006: Parameter 'direction' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.sorter.ts (3,42): error TS7006: Parameter 'a' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.sorter.ts (3,45): error TS7006: Parameter 'b' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts (13,5): error TS7018: Object literal's property 'filters' implicitly has an 'any[]' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts (162,13): error TS7006: Parameter 'fieldConf' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts (235,13): error TS7005: Variable 'mergedData' implicitly has an 'any[]' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts (1,28): error TS7006: Parameter 'out' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts (1,33): error TS7019: Rest parameter 'sources' implicitly has an 'any[]' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/cell.ts (8,31): error TS7006: Parameter 'value' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/cell.ts (10,57): error TS7006: Parameter 'column' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/row.ts (34,11): error TS7006: Parameter 'data' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/data-set.ts (34,17): error TS7006: Parameter 'data' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/data-set.ts (115,27): error TS7006: Parameter 'settings' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts (19,35): error TS7006: Parameter 'settings' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts (148,31): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts (158,33): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts (169,34): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts (199,27): error TS7006: Parameter 'source' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts (90,9): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts (110,20): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts (125,22): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts (139,22): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts (146,20): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table @ ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts 195:21-54
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/title/title.component.ts Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\title @ ./~/ng2-smart-table/src/ng2-smart-table/components/title/title.component.ts 64:21-44
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/pager/pager.component.ts Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\pager @ ./~/ng2-smart-table/src/ng2-smart-table/components/pager/pager.component.ts 90:21-44
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/filter/filter.component.ts Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\filter @ ./~/ng2-smart-table/src/ng2-smart-table/components/filter/filter.component.ts 66:21-45
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\cell @ ./~/ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts 49:21-43
Error: Template parse errors: Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.
Hey @LoscaraDK, thanks for opening issue with us, would you mind providing us with the details about your environment? angular version, package json details, etc. Thanks.
I deleted it , i will try on angular 1, i need do this on corporative and the component dont work very well with me, too much files to configure and write to show a list. i will be very glad if u put a complete example with just the component and nothing more if possible, the demo-app have too much code its very much confuse to someone like me newbie on angular 2, on example page its show a very simple way to use the component but that dont work. ty for ur time.
I get same problem.
Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.
<ng2-smart-table [ERROR ->][settings]="attr.settings" [source]="attr.data"> "): AppComponent@2:21 Can't bind to 'source' since it isn't a known property of 'ng2-smart-table'.
<ng2-smart-table [settings]="attr.settings" [ERROR ->][source]="attr.data"> "): AppComponent@2:48 'ng2-smart-table' is not a known element:
[ERROR ->]<ng2-smart-table [settings]="attr.settings" [source]="attr.data">
"): AppComponent@2:4 ; Zone:
<ng2-smart-table [ERROR ->][settings]="attr.settings" [source]="attr.data"> "): AppComponent@2:21 Can't bind to 'source' since it isn't a known property of 'ng2-smart-table'.
<ng2-smart-table [settings]="attr.settings" [ERROR ->][source]="attr.data"> "): AppComponent@2:48 'ng2-smart-table' is not a known element:
[ERROR ->]<ng2-smart-table [settings]="attr.settings" [source]="attr.data">
is there any simple demo project?
@biolee I got the same problem, and the issue is that you have to includeimport { Ng2SmartTableModule } from 'ng2-smart-table';
in your module file and don't forget to add it also in your imports on @NgModule.
After long time I close this issue.
In my case I have these structure:
src --app -- app.module -- TravelPlan -- travel-plan.module -- test.component
So, I was trying put the ng2-smart-table in app.module, but I was wrong. The correct is put in travel-plan.module.
Hi..I got same issue. Following are details of my project - Package json details -
{ "name": "angular-quickstart", "version": "1.0.0", "description": "QuickStart package.json from the documentation, supplemented with testing support", "scripts": { "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", "e2e": "tsc && concurrently \"http-server -s\" \"protractor protractor.config.js\" --kill-others --success first", "lint": "tslint ./app/**/*.ts -t verbose", "lite": "lite-server", "pree2e": "webdriver-manager update", "test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"", "test-once": "tsc && karma start karma.conf.js --single-run", "tsc": "tsc", "tsc:w": "tsc -w" }, "keywords": [], "author": "", "license": "MIT", "dependencies": { "@angular/common": "~2.4.0", "@angular/compiler": "~2.4.0", "@angular/core": "~2.4.0", "@angular/forms": "~2.4.0", "@angular/http": "~2.4.0", "@angular/material": "^2.0.0-beta.1", "@angular/platform-browser": "~2.4.0", "@angular/platform-browser-dynamic": "~2.4.0", "@angular/router": "~3.4.0", "angular-in-memory-web-api": "~0.2.4", "angular2-qrcode": "^1.0.5", "bootstrap": "^4.0.0-alpha.6", "bootstrap-layout": "^1.0.0-alpha.10", "bootstrap-layout-scrollable": "^1.1.0", "core-js": "^2.4.1", "hammerjs": "^2.0.8", "jquery": "^3.1.1", "ng2-bootstrap": "^1.3.2", "ng2-bootstrap-layout": "^2.0.0", "ng2-qrcode": "^0.1.1", "ng2-smart-table": "^0.5.2-1", "rxjs": "5.0.1", "systemjs": "0.19.40", "zone.js": "^0.7.4" }, "devDependencies": { "@types/hammerjs": "^2.0.34", "@types/jasmine": "^2.5.36", "@types/node": "^6.0.46", "canonical-path": "0.0.2", "concurrently": "^3.1.0", "http-server": "^0.9.0", "jasmine-core": "~2.4.1", "karma": "^1.3.0", "karma-chrome-launcher": "^2.0.0", "karma-cli": "^1.0.1", "karma-jasmine": "^1.0.2", "karma-jasmine-html-reporter": "^0.2.2", "lite-server": "^2.2.2", "lodash": "^4.16.4", "protractor": "~4.0.14", "rimraf": "^2.5.4", "tslint": "^3.15.1", "typescript": "~2.0.10" }, "repository": {} }
Please help if anyone had any luck on this issue. Thanks in advance !
I am getting following errors -
`node_modules/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts(13,5): error TS7018: Object literal's property 'filters' implicitly has an 'any[]' type.
node_modules/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts(236,13): error TS7005: Variable 'mergedData' implicitly has an 'any[]' type.
node_modules/ng2-smart-table/src/ng2-smart-table/lib/data-source/server/server.data-source.ts(70,12): error TS2322: Type 'Observable
node_modules/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts(27,7): error TS7005: Variable 'clone' implicitly has an 'any[]' type.
node_modules/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts(53,37): error TS7019: Rest parameter 'objects' implicitly has an 'any[]' type.`
just remove this:
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
from your tsconfig.json
Hi..I got same issue when i try to set a smart table with Angular2 i have this errors
can you please help me thanks
@MJAHEDSABRINE :Any luck? Please also refer #236
any luck with this?
The solution of @jfbarboza actually worked for me. I tried to include SmartTableComponent
into Dashboard
. Here is my case:
import { SmartTableComponent } from "../tables/smart-table/smart-table.component";
import { Ng2SmartTableModule } from 'ng2-smart-table';
Don't forget to include into NgModule
:
@NgModule({
imports: [
ThemeModule,
AngularEchartsModule,
Ng2SmartTableModule
],
declarations: [
DashboardComponent,
StatusCardComponent,
TemperatureDraggerComponent,
ContactsComponent,
RoomSelectorComponent,
TemperatureComponent,
RoomsComponent,
TeamComponent,
KittenComponent,
SecurityCamerasComponent,
ElectricityComponent,
ElectricityChartComponent,
WeatherComponent,
PlayerComponent,
SolarComponent,
TrafficComponent,
TrafficChartComponent,
SmartTableComponent
],
})
I dont know how to load ir someone can help me please?