Home > Net >  nativescrip error after migrate: Error: The target entry-point "chart-directives" has miss
nativescrip error after migrate: Error: The target entry-point "chart-directives" has miss

Time:10-05

after i migrate my project a error apear

webpack is watching the files... Compiling @angular/core : module as esm2015 Compiling @angular/animations : module as esm2015 Compiling @angular/animations/browser : module as esm2015 Compiling @angular/common : module as esm2015 Compiling @angular/platform-browser : module as esm2015 Compiling @angular/router : module as esm2015 Compiling @angular/common/http : module as esm2015 Compiling @angular/platform-browser/animations : module as esm2015 Compiling @angular/forms : module as esm2015 Compiling @nativescript/angular : module as esm2015 C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40 throw new Error("The target entry-point "" invalidTarget.entryPoint.name "" has missing dependencies:\n" ^

Error: The target entry-point "chart-directives" has missing dependencies:

  • nativescript-angular/element-registry

  • ./../

  • tns-core-modules/data/observable-array

  • tns-core-modules/ui/core/view

  • tns-core-modules/data/observable

  • tns-core-modules/color

    at TargetedEntryPointFinder.findEntryPoints (C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40:23) at C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\execution\analyze_entry_points.js:29:41 at SingleProcessExecutorSync.SingleProcessorExecutorBase.doExecute (C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\execution\single_process_executor.js:28:29) at C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:59 at SyncLocker.lock (C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\locking\sync_locker.js:34:24) at SingleProcessExecutorSync.execute (C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:27) at Object.mainNgcc (C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\src\main.js:74:25) at Object.process (C:\Users\nova\Projects\petropagolite_app\node_modules@angular\compiler-cli\ngcc\index.js:29:23) at NgccProcessor.processModule (C:\Users\nova\Projects\petropagolite_app\node_modules@ngtools\webpack\src\ngcc_processor.js:175:16) at C:\Users\nova\Projects\petropagolite_app\node_modules@ngtools\webpack\src\ivy\host.js:146:18 at C:\Users\nova\Projects\petropagolite_app\node_modules@ngtools\webpack\src\ivy\host.js:76:24 at Array.map () at Object.host.resolveModuleNames (C:\Users\nova\Projects\petropagolite_app\node_modules@ngtools\webpack\src\ivy\host.js:74:32) at actualResolveModuleNamesWorker (C:\Users\nova\Projects\petropagolite_app\node_modules\typescript\lib\typescript.js:109497:133) at resolveModuleNamesWorker (C:\Users\nova\Projects\petropagolite_app\node_modules\typescript\lib\typescript.js:109760:26) at resolveModuleNamesReusingOldState (C:\Users\nova\Projects\petropagolite_app\node_modules\typescript\lib\typescript.js:109857:24) Executing webpack failed with exit code 1.

my package json is:

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "@angular/animations": "^12.2.5",
    "@angular/common": "^12.2.5",
    "@angular/compiler": "^12.2.5",
    "@angular/core": "^12.2.5",
    "@angular/forms": "^12.2.5",
    "@angular/platform-browser": "^12.2.5",
    "@angular/platform-browser-dynamic": "^12.2.5",
    "@angular/router": "^12.2.5",
    "@nativescript/imagepicker": "^1.0.5",
    "@types/node": "7.0.7",
    "@types/openpgp": "^4.4.7",
    "base-64": "^0.1.0",
    "from-exponential": "^1.0.0",
    "moment": "^2.24.0",
    "nativescript-barcodescanner": "^3.4.2",
    "nativescript-checkbox": "^3.0.3",
    "nativescript-exit": "^1.0.1",
    "nativescript-feedback": "^1.3.12",
    "nativescript-fingerprint-auth": "^7.0.2",
    "nativescript-input-mask": "^1.0.5",
    "nativescript-masked-text-field": "^4.0.3",
    "nativescript-permissions": "^1.3.11",
    "nativescript-theme-core": "~1.0.6",
    "nativescript-qr-generator": "^2.0.0",
    "nativescript-ui-autocomplete": "^6.0.0",
    "nativescript-ui-chart": "^7.1.0",
    "nativescript-webview-interface": "^1.4.4",
    "nativescript-zxing": "^1.5.9",
    "openpgp": "github:mohammadrafigh/nativescript-openpgpjs#openpgp2",
    "reflect-metadata": "~0.1.12",
    "rxjs": "~7.3.0",
    "zone.js": "~0.11.4",
    "@nativescript/core": "~8.1.1",
    "@nativescript/angular": "^12.2.0"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^12.2.5",
    "@nativescript/schematics": "^0.7.3",
    "@ngtools/webpack": "^12.2.5",
    "@types/node": "^11.15.20",
    "typescript": "~4.3.5",
    "@nativescript/webpack": "~5.0.0",
    "@nativescript/android": "~8.1.1"
  },
  "gitHead": "1964ea9e8ca1a0518e0d6370781eedcf6c23db42",
  "readme": "NativeScript Application",
  "main": "./src/main.ts"
}

I don't have much idea what to do, Thank you very much to anyone who can help me

CodePudding user response:

It looks like at least one of your NativeScript plugin dependencies is not compatible with NativeScript 7/8 as it is looking for older v6 imports like tns-core-modules. Try:

"nativescript-ui-chart": "^9.0.0",

If you run into more similar errors, then make sure you update all your nativescript plugin dependencies to latest versions.

  • Related