Giter Site home page Giter Site logo

404 GET /ng2-smart-table about ng2-smart-table HOT 14 OPEN

akveo avatar akveo commented on May 13, 2024 2
404 GET /ng2-smart-table

from ng2-smart-table.

Comments (14)

unship avatar unship commented on May 13, 2024 5

I get same problem.

Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.

  1. If 'ng2-smart-table' is an Angular component and it has 'settings' input, then verify that it is part of this module.
  2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
    ("

    My First Angular App

    ][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'.

  1. If 'ng2-smart-table' is an Angular component and it has 'source' input, then verify that it is part of this module.
  2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
    ("

    My First Angular App

    ][source]="attr.data">

"): AppComponent@2:48
'ng2-smart-table' is not a known element:

  1. If 'ng2-smart-table' is an Angular component, then verify that it is part of this module.
  2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("

    My First Angular App

    [ERROR ->]

"): AppComponent@2:4 ; Zone: ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors:
Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.

  1. If 'ng2-smart-table' is an Angular component and it has 'settings' input, then verify that it is part of this module.
  2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
    ("

    My First Angular App

    ][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'.

  1. If 'ng2-smart-table' is an Angular component and it has 'source' input, then verify that it is part of this module.
  2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
    ("

    My First Angular App

    ][source]="attr.data">

"): AppComponent@2:48
'ng2-smart-table' is not a known element:

  1. If 'ng2-smart-table' is an Angular component, then verify that it is part of this module.
  2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("

    My First Angular App

    [ERROR ->]

is there any simple demo project?

from ng2-smart-table.

jfbarboza avatar jfbarboza commented on May 13, 2024 5

@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.

from ng2-smart-table.

LoscaraDK avatar LoscaraDK commented on May 13, 2024 2

Error: Template parse errors:
Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.
1. If 'ng2-smart-table' is an Angular component and it has 'settings' input, then verify that it is part of this module.
2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("
<ng2-smart-table [ERROR ->][settings]="settings" [source]="data">
"): AppComponent@1:19
Can't bind to 'source' since it isn't a known property of 'ng2-smart-table'.
1. If 'ng2-smart-table' is an Angular component and it has 'source' input, then verify that it is part of this module.
2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("
<ng2-smart-table [settings]="settings" [ERROR ->][source]="data">
"): AppComponent@1:41 in C:/Desenvolvimento/workspace/cetip-lista-eventos/config/karma-test-shim.ts (line 37133)

from ng2-smart-table.

nilsonmassarenti avatar nilsonmassarenti commented on May 13, 2024 1

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.

from ng2-smart-table.

henryoliver avatar henryoliver commented on May 13, 2024 1

just remove this:

"noImplicitAny": true, 
"suppressImplicitAnyIndexErrors": true

from your tsconfig.json

from ng2-smart-table.

thovo avatar thovo commented on May 13, 2024 1

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
  ],
})

from ng2-smart-table.

LoscaraDK avatar LoscaraDK commented on May 13, 2024

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

from ng2-smart-table.

nnixaa avatar nnixaa commented on May 13, 2024

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.

from ng2-smart-table.

LoscaraDK avatar LoscaraDK commented on May 13, 2024

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.

from ng2-smart-table.

ViksYelapale avatar ViksYelapale commented on May 13, 2024

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 !

from ng2-smart-table.

ViksYelapale avatar ViksYelapale commented on May 13, 2024

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' is not assignable to type 'Observable'.
Property 'source' is protected but type 'Observable' is not a class derived from '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.`

from ng2-smart-table.

MJAHEDSABRINE avatar MJAHEDSABRINE commented on May 13, 2024

Hi..I got same issue when i try to set a smart table with Angular2 i have this errors
image

can you please help me
thanks

from ng2-smart-table.

rjankathi avatar rjankathi commented on May 13, 2024

@MJAHEDSABRINE :Any luck? Please also refer #236

from ng2-smart-table.

stephenlane avatar stephenlane commented on May 13, 2024

any luck with this?

from ng2-smart-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.