I have a problem when build a task in angular 2

Cannot find name 'any'. \[email protected]\underscore\index.d.ts I'm trying to update this package but did't work and change "core-js":^2.4.1" to "core-js": "0.9.36" but did't work

package.json is

.....

{

    "name": "app",
    "version": "1.0.0",
    "description": "new app",
    "author": "Qapp",

    "dependencies": {
        "@angular/cli": "^8.0.0-rc.1",
        "@angular/common": "2.2.3",
        "@angular/compiler": "2.2.3",
        "@angular/core": "2.2.3",
        "@angular/forms": "2.2.3",
        "@angular/http": "2.2.3",
        "@angular/platform-browser": "^2.2.3",
        "@angular/platform-browser-dynamic": "2.2.3",
        "@angular/platform-server": "2.2.3",
        "@angular/router": "3.2.3",
        "@angularclass/conventions-loader": "^1.0.2",
        "@angularclass/hmr": "~1.2.2",
        "@angularclass/hmr-loader": "~3.0.2",
        "@babel/core": "^7.0.0-beta.40",
        "@babel/preset-env": "^7.0.0-beta.40",
        "@jaspero/ng-chips": "",
        "@ngui/auto-complete": "^0.16.1",
        "@types/angular": "^1.6.54",
        "amcharts3": "github:amcharts/amcharts3",
        "ammap3": "github:amcharts/ammap3",
        "angular-timeline": "^1.7.0",
        "angular2-datetimepicker": "^1.1.1",
        "angular2-dimensions-directive": "^1.1.0",
        "angular2-google-maps": "^0.17.0",
        "angular2-highcharts": "^0.4.3",
        "angular2-image-upload": "^1.0.0-rc.0",
        "angular2-moment": "^1.8.0",
        "angular2-social-login": "^3.1.1",
        "angularx-social-login": "^1.1.3",
        "animate.css": "^3.5.1",
        "assets-webpack-plugin": "^3.4.0",
        "babel-loader": "^8.0.0-beta.0",
        "bootstrap": "^4.0.0-alpha.4",
        "bootstrap-loader": "2.0.0-beta.12",
        "bootstrap-sass": "latest",
        "chart.js": "^1.1.1",
        "chartist": "^0.9.7",
        "ckeditor": "4.6.0",
        "core-js": "0.9.36",

        "detect-browser": "^3.0.0",
        "dragula": "^3.7.2",
        "easy-pie-chart": "^2.1.7",
        "extract-text-webpack-plugin": "2.0.0-beta.3",
        "firebase": "^4.8.2",
        "font-awesome": "^4.6.3",
        "font-awesome-sass-loader": "^1.0.2",
        "google-maps": "^3.2.1",
        "hex2dec": "^1.0.1",
        "http-server": "^0.9.0",
        "ie-shim": "^0.1.0",
        "ionicons": "^2.0.1",
        "jquery": "^2.2.4",
        "jquery-slimscroll": "^1.3.6",
        "jquery-ui": "^1.12.1",
        "leaflet": "^0.7.7",
        "leaflet-map": "^0.2.1",
        "lodash": "^4.12.0",
        "moment": "^2.20.1",
        "ng2-bootstrap": "^1.3.0",
        "ng2-charts": "1.5.0",
        "ng2-ckeditor": "1.0.7",
        "ng2-device-detector": "1.0.1",
        "ng2-dnd": "^2.2.2",
        "ng2-dragula": "^1.3.0",
        "ng2-select": "latest",
        "ng2-smart-table": "^0.3.2",
        "ng2-smooth-scroll": "^1.0.1",
        "ng2-sticky-nav": "github:qapp/ng2-sticky-nav",
        "ng2-tree": "^0.0.2-7",
        "ng2-uploader": "1.1.0",
        "ng2draggable": "latest",
        "ngx-facebook": "^2.4.0",
        "ngx-parallax": "^4.0.0",
        "ngx-popover": "0.0.16",
        "ngx-spinner": "^2.0.1",
        "ngx-tags-input": "^1.1.1",
        "ngx-tooltip": "0.0.9",
        "normalize.css": "^4.1.1",
        "postcss-loader": "^1.3.3",
        "rxjs": "5.0.0-beta.12",
        "safe-pipe": "^0.3.0",
        "tether": "^1.2.4",
        "underscore": "^1.9.1",
        "zone": "^0.3.4",
        "zone.js": "~0.7.1"
    },
    "devDependencies": {
        "@angular-devkit/build-angular": "^0.13.8",
        "@types/hammerjs": "^2.0.33",
        "@types/jasmine": "^2.2.34",
        "@types/jquery": "^2.0.49",
        "@types/jquery.slimscroll": "^1.3.30",
        "@types/lodash": "0.0.28",
        "@types/node": "^6.0.38",
        "@types/source-map": "^0.1.27",
        "@types/uglify-js": "^2.0.27",
        "@types/underscore": "^1.8.9",
        "@types/webpack": "2.0.0",
        "angular2-router-loader": "^0.3.4",
        "angular2-template-loader": "^0.6.0",
        "angular2-tooltip": "^3.1.0",
        "awesome-typescript-loader": "^2.2.1",
        "babel-minify-webpack-plugin": "^0.3.0",
        "codelyzer": "~1.0.0-beta.4",
        "compression-webpack-plugin": "0.3.2",
        "copy-webpack-plugin": "4.0.1",
        "css-loader": "^0.25.0",
        "es6-promise": "^3.1.2",
        "es6-shim": "^0.35.0",
        "es7-reflect-metadata": "^1.6.0",
        "exports-loader": "^0.6.3",
        "expose-loader": "^0.7.1",
        "file-loader": "^0.9.0",
        "gh-pages": "^0.11.0",
        "html-webpack-plugin": "2.26.0",
        "imports-loader": "^0.6.5",
        "json-loader": "^0.5.4",
        "ng2-drag-drop": "^0.5.3",
        "ng2-draggable": "^0.1.2",
        "ng2-vis": "0.0.5",
        "node-sass": "^4.11.0",
        "parse5": "^2.2.2",
        "raw-loader": "^0.5.1",
        "resolve-url-loader": "^1.4.3",
        "rimraf": "~2.5.4",
        "sass-loader": "^4.1.1",
        "script-ext-html-webpack-plugin": "1.5.0",
        "source-map-loader": "^0.1.5",
        "string-replace-loader": "1.0.5",
        "style-loader": "^0.13.1",
        "to-string-loader": "^1.1.4",
        "ts-helpers": "1.1.2",
        "ts-node": "^1.7.0",
        "tslint": "3.15.1",
        "tslint-loader": "^2.1.3",
        "typedoc": "^0.5.0",
        "typescript": "2.0.3",
        "url-loader": "^0.5.7",
        "v8-lazy-parse-webpack-plugin": "0.3.0",
        "webpack": "2.2.0",
        "webpack-dashboard": "0.2.1",
        "webpack-dev-middleware": "1.9.0",
        "webpack-dev-server": "2.2.0",
        "webpack-md5-hash": "0.0.5",
        "webpack-merge": "2.4.0"
    },
    "scripts": {
        "rimraf": "rimraf",
        "tslint": "tslint",
        "typedoc": "typedoc",
        "webpack": "webpack --progress --profile --bail",
        "webpack-dev-server": "webpack-dev-server",
        "webdriver-manager": "webdriver-manager",
        "clean": "npm cache clean && npm run rimraf -- node_modules doc coverage dist",
        "clean:dist": "npm run rimraf -- dist",
        "preclean:install": "npm run clean",
        "clean:install": "npm set progress=false && npm install",
        "preclean:start": "npm run clean",
        "clean:start": "npm start",
        "watch": "npm run watch:dev",
        "watch:dev": "npm run build:dev -- --watch",
        "watch:dev:hmr": "npm run watch:dev -- --hot",
        "watch:prod": "npm run build:prod -- --watch",
        "build": "npm run build:dev",
        "prebuild:dev": "npm run clean:dist",
        "build:dev": "npm run webpack -- --config config/webpack.dev.js",
        "prebuild:prod": "npm run clean:dist",
        "build:prod": "npm run webpack -- --config config/webpack.prod.js",
        "server": "npm run server:dev",
        "server:dev": "webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/",
        "server:dev:hmr": "npm run server:dev -- --inline --hot",
        "server:prod": "http-server dist --cors",
        "webdriver:update": "npm run webdriver-manager update",
        "webdriver:start": "npm run webdriver-manager start",
        "lint": "npm run tslint \"src/**/*.ts\" --force",
        "pree2e": "npm run webdriver:update -- --standalone",
        "pretest": "npm run lint",
        "docs": "npm run typedoc -- --options typedoc.json --exclude '**/*.spec.ts' ./src/",
        "gh-pages": "wintersmith build -C docs && gh-pages -d docs/build",
        "start": "npm run server:dev",
        "start:hmr": "npm run server:dev:hmr",
        "version": "npm run build",
        "postversion": "git push && git push --tags"
    },
    "repository": {
        "type": "git",
        "url": ""
    },
    "bugs": {
        "url": ""
    },
    "engines": {
        "node": ">= 4.2.1",
        "npm": ">= 3"
    }
}

and file of tsconfig.json is

.....

{






"compilerOptions": {

        "target": "es6",
        "module": "commonjs",
        "moduleResolution": "node",
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "allowSyntheticDefaultImports": true,
        "sourceMap": true,
        "noEmitHelpers": true,
        "strictNullChecks": false,
        "baseUrl": "./src",
        "paths": {},
        "lib": ["dom", "es6"],
        "types": [
            "hammerjs",
            "node",
            "source-map",
            "uglify-js",
            "webpack",
            "jquery.slimscroll"
        ]
    },
    "exclude": ["node_modules", "dist"],
    "typeRoots": ["node_modules/@types"],
    "awesomeTypescriptLoaderOptions": {
        "forkChecker": true,
        "useWebpackText": true
    },
    "compileOnSave": false,
    "buildOnSave": false,
    "atom": {
        "rewriteTsconfig": false
    }
}

0 Answers