angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.77k stars 11.97k forks source link

Cannot find module '@angular-devkit/core/src/experimental/workspace' or its corresponding type declarations #22744

Closed dilantha-nimshan closed 2 years ago

dilantha-nimshan commented 2 years ago

Which @angular/* package(s) are the source of the bug?

upgrade

Is this a regression?

Yes

Description

I have updated my angular project from v8.0 to v11.2 and getting following errors. Tried to resolve couple of times and still no luck, Can someone please guide

Please provide a link to a minimal reproduction of the bug

https://github.com/nrwl/nx/issues/4432

Please provide the exception or error you saw

Error: node_modules/@nebular/theme/schematics/util/ast.d.ts:2:34 - error TS2307: Cannot find module '@angular-devkit/core/src/experimental/workspace' or its corresponding type declarations.

2 import { WorkspaceProject } from '@angular-devkit/core/src/experimental/workspace';
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: node_modules/@nebular/theme/schematics/util/project.d.ts:2:34 - error TS2307: Cannot find module '@angular-devkit/core/src/experimental/workspace' or its corresponding type declarations.     

2 import { WorkspaceProject } from '@angular-devkit/core/src/experimental/workspace';
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please provide the environment you discovered this bug in (run ng version)

Here is my package.json

{
  "name": "portal",
  "version": "0.1.0",
  "license": "",
  "scripts": {
    "ng": "ng",
    "conventional-changelog": "conventional-changelog",
    "start": "ng serve",
    "build": "ng build",
    "build:prod": "npm run build -- --configuration production --aot",
    "test": "ng test",
    "test:coverage": "rimraf coverage && npm run test -- --code-coverage",
    "lint": "ng lint",
    "lint:fix": "ng lint portal --fix",
    "lint:styles": "stylelint ./src/**/*.scss",
    "lint:ci": "npm run lint && npm run lint:styles",
    "pree2e": "webdriver-manager update --standalone false --gecko false",
    "e2e": "ng e2e",
    "docs": "compodoc -p src/tsconfig.app.json -d docs",
    "docs:serve": "compodoc -p src/tsconfig.app.json -d docs -s",
    "prepush": "npm run lint:ci",
    "release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s",
    "predeploy": "npm run build:prod",

  },
  "dependencies": {
    "@angular/animations": "11.2.8",
    "@angular/cdk": "10.2.7",
    "@angular/common": "11.2.8",
    "@angular/compiler": "11.2.8",
    "@angular/core": "11.2.8",
    "@angular/forms": "11.2.8",
    "@angular/material": "10.2.7",
    "@angular/platform-browser": "11.2.8",
    "@angular/platform-browser-dynamic": "11.2.8",
    "@angular/router": "11.2.8",
    "@asymmetrik/ngx-leaflet": "3.0.1",
    "@nebular/auth": "^6.2.1",
    "@nebular/bootstrap": "^6.2.1",
    "@nebular/eva-icons": "^6.2.1",
    "@nebular/security": "^6.2.1",
    "@nebular/theme": "^6.2.1",
    "acorn": "6.1.0",
    "amazon-cognito-identity-js": "^3.0.13",
    "angular2-toaster": "^7.0.0",
    "bootstrap": "^4.3.1",
    "chart.js": "^2.8.0",
    "chartjs-plugin-datalabels": "^0.7.0",
    "classlist.js": "1.1.20150312",
    "core-js": "2.5.1",
    "devextreme": "^19.1.4",
    "devextreme-angular": "^19.1.4",
    "eva-icons": "^1.1.3",
    "fine-uploader": "^5.16.2",
    "intl": "1.2.5",
    "ionicons": "2.0.1",
    "jwt-decode": "^3.1.2",
    "local-cors-proxy": "^1.0.2",
    "moment": "^2.24.0",
    "nebular-icons": "1.1.0",
    "ng2-charts": "^2.3.0",
    "ngx-bootstrap": "^5.6.2",
    "ngx-logger": "^3.4.0",
    "node-sass": "^4.12.0",
    "normalize.css": "6.0.0",
    "pace-js": "1.0.2",
    "pdfmake": "^0.1.70",
    "roboto-fontface": "0.8.0",
    "rxjs": "^6.6.3",
    "rxjs-compat": "6.3.0",
    "tslib": "^2.0.0",
    "typeface-exo": "0.0.22",
    "uuid": "8.3.2",
    "web-animations-js": "^2.3.2",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^0.1102.6",
    "@angular-devkit/schematics": "11.2.8",
    "@angular/cli": "11.2.8",
    "@angular/compiler-cli": "11.2.8",
    "@angular/language-service": "11.2.8",
    "@compodoc/compodoc": "^1.1.10",
    "@fortawesome/fontawesome-free": "^5.2.0",
    "@schematics/angular": "^11.2.8",
    "@types/d3-color": "1.0.5",
    "@types/googlemaps": "^3.30.4",
    "@types/jasminewd2": "2.0.10",
    "@types/leaflet": "1.2.3",
    "@types/node": "^12.11.1",
    "@types/uuid": "^3.4.6",
    "codelyzer": "^6.0.0",
    "conventional-changelog-cli": "1.3.4",
    "husky": "0.13.3",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~6.3.16",
    "karma-chrome-launcher": "~3.1.0",
    "karma-cli": "1.0.1",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "mime-types": "^2.1.24",
    "npm-run-all": "4.0.2",
    "protractor": "~7.0.0",
    "rimraf": "2.6.1",
    "stylelint": "^11.0.0",
    "ts-node": "3.2.2",
    "tslint": "~6.1.0",
    "tslint-language-service": "^0.9.9",
    "typescript": "4.0.5"
  }
}

Anything else?

No response

alan-agius4 commented 2 years ago

I'm sorry, but this issue is not caused by Angular CLI.

Please contact the author(s) of the @nebular/theme project or file an issue on their issue tracker.

angular-automatic-lock-bot[bot] commented 2 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.