Topic: Error: Could not determine a single project for the 'serve' target

rmtsoft free asked 6 years ago


I have an issue with the latest MDB pro Angular “ng-uikit-pro-standard-6.2.6-npm”. After I unzip the project and install the dependencies, the “ng serve” command does not work and gives me the following error:   Could not determine a single project for the 'serve' target. Error: Could not determine a single project for the 'serve' target.   I looked around the web for a solution but I cannot find a proper answer for this issue. I tried upgrading the angular/cli but it did not help with the issue. Could you please help me solve this. this is how my package.json file looks like:
{

  "name": "ng-uikit-pro-standard-lib",

  "version": "6.2.6",

  "license": "SEE LICENSE IN <license.pdf>",

  "scripts": {

    "ng": "ng",

    "start": "ng serve mdb-angular-pro",

    "build": "ng build mdb-angular-pro",

    "test": "ng test mdb-angular-pro",

    "lint": "ng lint mdb-angular-pro",

    "e2e": "ng e2e mdb-angular-pro",

    "remove-demo-unix": "rm -rf projects && rm angular.json && mv angular-clean.json angular.json",

    "remove-demo-windows": "rmdir /s /q projects && del angular.json && ren angular-clean.json angular.json"

  },

  "private": true,

  "dependencies": {

    "@agm/core": "^1.0.0-beta.3",

    "@angular/animations": "^6.0.0",

    "@angular/common": "^6.0.0",

    "@angular/core": "^6.0.0",

    "@angular/forms": "^6.0.0",

    "@angular/http": "^6.0.0",

    "@angular/platform-browser": "^6.0.0",

    "@angular/platform-browser-dynamic": "^6.0.0",

    "@angular/router": "^6.0.0",

    "@angular/platform-server": "^6.0.0",

    "angular5-csv": "~0.2.10",

    "ngx-facebook": "^2.4.0",

    "chart.js": "2.5.x",

    "classlist.js": "1.1.x",

    "core-js": "2.4.x",

    "easy-pie-chart": "2.1.x",

    "font-awesome": "4.7.x",

    "hammerjs": "2.0.x",

    "jarallax": "^1.10.3",

    "ng-html-util": "1.0.x",

    "ng-uikit-pro-standard": "git+https://oauth2:[MyToken]@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git",

    "rxjs": "^6.0.0",

    "screenfull": "3.3.x",

    "smoothscroll-polyfill": "0.3.x",

    "web-animations-js": "2.3.x",

    "zone.js": "0.8.x"

  },

  "devDependencies": {

    "@angular/cli": "^6.0.0",

    "@angular/compiler-cli": "^6.0.0",

    "@angular/language-service": "^6.0.0",

    "@angular/compiler": "^6.0.0",

    "@types/jasmine": "2.5.38",

    "@types/node": "~6.0.85",

    "codelyzer": "~3.2.0",

    "jasmine-core": "~2.5.2",

    "jasmine-spec-reporter": "~3.2.0",

    "karma": "~1.4.1",

    "karma-chrome-launcher": "~2.0.0",

    "karma-cli": "~1.0.1",

    "karma-jasmine": "~1.1.0",

    "karma-jasmine-html-reporter": "^0.2.2",

    "karma-coverage-istanbul-reporter": "^0.2.0",

    "protractor": "~5.1.2",

    "ts-node": "~3.2.0",

    "tslint": "~5.7.0",

    "typescript": "~2.7.2",

    "webpack": "^4.3.0",

    "@angular-devkit/build-angular": "~0.5.0"

  }

}
 

Damian Gemza staff answered 6 years ago


Dear rmtsoft, This problem will be fixed with the next release of MDB Angular. This is caused by this, that in ng-uikit-pro-standard zip archive there are two Angular projects. One for the actual application, and one for demo app which contains our every component. For running the normal application, please execute command ng serve mdb-angular-pro. For running the demo application, please execute command ng serve mdb-demo. That information are described in README.md file. Best Regards, Damian

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: Personal Computer
  • Browser: Chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No