node.js - Error when using "npm start" -
i'm getting errors npm start. wouldn't mind, causes me not able run server , view local website. it's because use bootstrap-multiselect plugin has no d.ts (typing) file created in ts file has error call $("#category-select").multiselect({}) saying:
property 'multiselect' not exist on type jquery.
so terminal says when use npm start:
multiselect.component.ts(16,31): error ts2339: property 'multiselect' not exist on type 'jquery'.
and won't start local server. complete blocker work. bootstrap-multiselect plugin , need have it.
how can either ignore error , continue start local server, or stop error happening?
package.json:
{ "name": "the-vegan-repository", "version": "1.0.0", "scripts": { "lite-server-test": "lite-server --config=liteserver-test-config.json", "test": "tsc && concurrently \"npm run tsc:w\" \"npm run lite-server-test\" ", "start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" \"sass --watch app\" \"sass --watch index.scss\" ", "lite": "lite-server", "postinstall": "typings install", "tsc": "tsc", "tsc:w": "tsc -w", "typings": "typings" }, "license": "isc", "dependencies": { "@angular/common": "2.0.0-rc.4", "@angular/compiler": "2.0.0-rc.4", "@angular/core": "2.0.0-rc.4", "@angular/forms": "0.2.0", "@angular/http": "2.0.0-rc.4", "@angular/platform-browser": "2.0.0-rc.4", "@angular/platform-browser-dynamic": "2.0.0-rc.4", "@angular/router": "3.0.0-beta.1", "@angular/router-deprecated": "2.0.0-rc.2", "@angular/upgrade": "2.0.0-rc.4", "angular2-in-memory-web-api": "0.0.14", "bootstrap": "^3.3.6", "core-js": "^2.4.0", "ng2-select": "^1.0.3", "reflect-metadata": "^0.1.3", "rxjs": "5.0.0-beta.6", "systemjs": "0.19.27", "zone.js": "^0.6.12", "jquery": "v3.1.0" }, "devdependencies": { "codelyzer": "0.0.26", "concurrently": "^2.0.0", "jasmine-core": "2.4.1", "lite-server": "^2.2.0", "tslint": "^3.13.0", "typescript": "^1.8.10", "typings": "^1.0.4" } }
i found workaround
i casted any:
(<any>$("#category-select")).multiselect();
i leave question open there may more answers.
Comments
Post a Comment