angular/quickstart

Getting TS1005: ',' expected while running npm run build to support Jquery

amitkrgargangularjs opened this issue · 0 comments

Getting node_modules/@types/jquery/index.d.ts(7228,30): error TS1005: ',' expected. error while running npm start.

I wanted to add jquery support in to the quickstart package on local folder on my computer.
my package.json is:
{
"name": "angular-quickstart",
"version": "1.0.0",
"description": "QuickStart package.json from the documentation, supplemented with testing support",
"scripts": {
"build": "tsc -p src/",
"build:watch": "tsc -p src/ -w",
"build:e2e": "tsc -p e2e/",
"serve": "lite-server -c=bs-config.json",
"serve:e2e": "lite-server -c=bs-config.e2e.json",
"prestart": "npm run build",
"start": "concurrently "npm run build:watch" "npm run serve"",
"pree2e": "npm run build:e2e",
"e2e": "concurrently "npm run serve:e2e" "npm run protractor" --kill-others --success first",
"preprotractor": "webdriver-manager update",
"protractor": "protractor protractor.config.js",
"pretest": "npm run build",
"test": "concurrently "npm run build:watch" "karma start karma.conf.js"",
"pretest:once": "npm run build",
"test:once": "karma start karma.conf.js --single-run",
"lint": "tslint ./src/**/*.ts -t verbose"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@angular/common": "~4.3.4",
"@angular/compiler": "~4.3.4",
"@angular/core": "~4.3.4",
"@angular/forms": "~4.3.4",
"@angular/http": "~4.3.4",
"@angular/platform-browser": "~4.3.4",
"@angular/platform-browser-dynamic": "~4.3.4",
"@angular/router": "~4.3.4",
"@types/jquery": "^3.2.1",
"angular-in-memory-web-api": "~0.3.0",
"core-js": "^2.4.1",
"jquery": "^3.2.1",
"rxjs": "5.0.1",
"systemjs": "0.19.40",
"zone.js": "^0.8.4",
"typescript": "~2.2.2"
},
"devDependencies": {
"@types/jasmine": "2.5.36",
"@types/node": "^6.0.46",
"canonical-path": "0.0.2",
"concurrently": "^3.2.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"
},
"repository": {}
}

and
@types/jquery package.json is:
{
"_args": [
[
{
"raw": "@types/jquery@^3.2.1",
"scope": "@types",
"escapedName": "@types%2fjquery",
"name": "@types/jquery",
"rawSpec": "^3.2.1",
"spec": ">=3.2.1 <4.0.0",
"type": "range"
},
"C:\Users\agar10\POC\AngularJSLearning\AngularNavBarAndSevice\NavBarAndService"
]
],
"_from": "@types/jquery@>=3.2.1 <4.0.0",
"_id": "@types/jquery@3.2.5",
"_inCache": true,
"_location": "/@types/jquery",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jquery-3.2.16.tgz_1509376401668_0.3491146811284125"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/jquery@^3.2.1",
"scope": "@types",
"escapedName": "@types%2fjquery",
"name": "@types/jquery",
"rawSpec": "^3.2.1",
"spec": ">=3.2.1 <4.0.0",
"type": "range"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.2.16.tgz",
"_shasum": "04419c404a3194350e7d3f339a90e72c88db3111",
"_shrinkwrap": null,
"_spec": "@types/jquery@^3.2.1",
"_where": "C:\Users\agar10\POC\AngularJSLearning\AngularNavBarAndSevice\NavBarAndService",
"contributors": [
{
"name": "Leonard Thieu",
"url": "https://github.com/leonard-thieu"
},
{
"name": "Boris Yankov",
"url": "https://github.com/borisyankov"
},
{
"name": "Christian Hoffmeister",
"url": "https://github.com/choffmeister"
},
{
"name": "Steve Fenton",
"url": "https://github.com/Steve-Fenton"
},
{
"name": "Diullei Gomes",
"url": "https://github.com/Diullei"
},
{
"name": "Tass Iliopoulos",
"url": "https://github.com/tasoili"
},
{
"name": "Jason Swearingen",
"url": "https://github.com/jasons-novaleaf"
},
{
"name": "Sean Hill",
"url": "https://github.com/seanski"
},
{
"name": "Guus Goossens",
"url": "https://github.com/Guuz"
},
{
"name": "Kelly Summerlin",
"url": "https://github.com/ksummerlin"
},
{
"name": "Basarat Ali Syed",
"url": "https://github.com/basarat"
},
{
"name": "Nicholas Wolverson",
"url": "https://github.com/nwolverson"
},
{
"name": "Derek Cicerone",
"url": "https://github.com/derekcicerone"
},
{
"name": "Andrew Gaspar",
"url": "https://github.com/AndrewGaspar"
},
{
"name": "Seikichi Kondo",
"url": "https://github.com/seikichi"
},
{
"name": "Benjamin Jackman",
"url": "https://github.com/benjaminjackman"
},
{
"name": "Poul Sorensen",
"url": "https://github.com/s093294"
},
{
"name": "Josh Strobl",
"url": "https://github.com/JoshStrobl"
},
{
"name": "John Reilly",
"url": "https://github.com/johnnyreilly"
},
{
"name": "Dick van den Brink",
"url": "https://github.com/DickvdBrink"
},
{
"name": "Thomas Schulz",
"url": "https://github.com/King2500"
}
],
"dependencies": {},
"description": "TypeScript definitions for jquery",
"devDependencies": {},
"directories": {},
"dist": {
"integrity": "sha512-q2WC02YxQoX2nY1HRKlYGHpGP1saPmD7GN0pwCDlTz35a4eOtJG+aHRlXyjCuXokUukSrR2aXyBhSW3j+jPc0A==",
"shasum": "04419c404a3194350e7d3f339a90e72c88db3111",
"tarball": "https://registry.npmjs.org/@types/jquery/-/jquery-3.2.16.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ts-npm-types@microsoft.com"
}
],
"name": "@types/jquery",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typeScriptVersion": "2.3",
"typesPublisherContentHash": "ff6f77472bcffa3093c1473337147ec26cb82c6730c3950ad6b533fd27087777",
"version": "3.2.5"
}