akveo / nebular

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/nebular
MIT License
8.04k stars 1.51k forks source link

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

Open dilantha-nimshan opened 2 years ago

dilantha-nimshan commented 2 years ago

I have updated my angular ngx-admin 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

Issue type

I'm submitting a ... (check one with "x")

Issue description

Current behavior: Getting below errors when try to run project

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';

Expected behavior:

Steps to reproduce:

Related code: Below is my package.json file

{
  "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"
  }
}

Other information:

Contacted angular github repository, They informed to contact nebular for further details

gzeeel commented 2 years ago

Hello, did you find a fix for this ? I got the same error

dilantha-nimshan commented 2 years ago

No , Still same issue.

khuzamajutt commented 2 years ago

Hello, did you find a fix for this ? I got the same error please someone guide us how to resolve it