facebook

Invalid Angular project: @angular/core dependency not found

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #532107 Reply

    abhinavshrivastav
    Participant

    Hi, I am trying to import an existing Angular project into the Angular IDE and I am getting the error as below.

    Invalid Angular project: @angular/core dependency not found

    My package.json contains the below content. Please let me know what am I doing wrong.

    {
    “name”: “accounts”,
    “version”: “0.0.1”,
    “repository”: {
    “type”: “git”,
    “url”: “https://github.com”
    },
    “dependencies”: {},
    “devDependencies”: {
    “archiver”: “^0.12.0”,
    “grunt”: “~0.4.5”,
    “grunt-angular-templates”: “~0.5.7”,
    “grunt-contrib-clean”: “~0.6.0”,
    “grunt-contrib-compress”: “^0.13.0”,
    “grunt-contrib-concat”: “~0.5.0”,
    “grunt-contrib-copy”: “~0.7.0”,
    “grunt-contrib-cssmin”: “~0.10.0”,
    “grunt-contrib-htmlmin”: “~0.3.0”,
    “grunt-contrib-jshint”: “~0.10.0”,
    “grunt-contrib-uglify”: “~0.6.0”,
    “grunt-contrib-watch”: “~0.6.1”,
    “grunt-dom-munger”: “~3.4”,
    “grunt-exec”: “^0.4.6”,
    “grunt-filerev”: “^2.3.1”,
    “grunt-json-minify”: “^0.4.0”,
    “grunt-ng-annotate”: “^0.10.0”,
    “grunt-replace”: “^0.9.2”,
    “grunt-usemin”: “^3.0.0”,
    “load-grunt-tasks”: “~1.0.0”
    }
    }

    #532141 Reply

    support-swapna
    Moderator

    Abhinav,

    The package.json is missing Angular (@angular) dependencies. Here is the sample package.json for an Angular project.

    {
      "name": "test-ng",
      "version": "0.0.0",
      "license": "MIT",
      "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
      },
      "private": true,
      "dependencies": {
        "@angular/animations": "^4.0.0",
        "@angular/common": "^4.0.0",
        "@angular/compiler": "^4.0.0",
        "@angular/core": "^4.0.0",
        "@angular/forms": "^4.0.0",
        "@angular/http": "^4.0.0",
        "@angular/platform-browser": "^4.0.0",
        "@angular/platform-browser-dynamic": "^4.0.0",
        "@angular/router": "^4.0.0",
        "core-js": "^2.4.1",
        "rxjs": "^5.1.0",
        "zone.js": "^0.8.4"
      },
      "devDependencies": {
        "@angular/cli": "1.1.0",
        "@angular/compiler-cli": "^4.0.0",
        "@angular/language-service": "^4.0.0",
        "@types/jasmine": "2.5.45",
        "@types/node": "~6.0.60",
        "codelyzer": "~3.0.1",
        "jasmine-core": "~2.6.2",
        "jasmine-spec-reporter": "~4.1.0",
        "karma": "~1.7.0",
        "karma-chrome-launcher": "~2.1.1",
        "karma-cli": "~1.0.1",
        "karma-jasmine": "~1.1.0",
        "karma-jasmine-html-reporter": "^0.2.2",
        "karma-coverage-istanbul-reporter": "^1.2.1",
        "protractor": "~5.1.2",
        "ts-node": "~3.0.4",
        "tslint": "~5.3.2",
        "typescript": "~2.3.3"
      }
    }

    You could add the missing @angular dependencies to the package.json and run ‘npm install’ for the project from the Terminal+ to fix the missing dependencies issue.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Invalid Angular project: @angular/core dependency not found

You must be logged in to post in the forum log in