nativescript-ui-feedback icon indicating copy to clipboard operation
nativescript-ui-feedback copied to clipboard

Angular ngcc warning: Unable to fully load source-map files

Open trane77 opened this issue 5 years ago • 6 comments
trafficstars

Tell us about the problem

Imported the plugin in a project based on angular@^10, it reports two warnings during ngcc compile

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • Progress NativeScript UI plugin version: 7.0.0-rc.1
  • CLI: 6.8.0
  • Cross-platform modules: rc
  • Runtime(s): both @ 6.0.0

Please tell us how to recreate the issue in as much detail as possible.

  1. ng new -c=@nativescript/schematics test-ui-autocomplete-project --shared --style=scss
  2. npm i --save nativescript-ui-autocomplete@rc
  3. npx rimraf hooks node_modules package-lock.json platforms && npm i
  4. Warning will show during ngcc execution:

nativescript-ui-autocomplete-angular.js.map

Warning: Unable to fully load <...>/node_modules/nativescript-ui-autocomplete/angular/fesm2015/nativescript-ui-autocomplete-angular.js for source-map flattening: ENOENT: no such file or directory, open '<...>/node_modules/nativescript-ui-autocomplete/angular/fesm2015/nativescript-ui-autocomplete-angular.js.map'

nativescript-ui-dataform-angular.js.map

Warning: Unable to fully load <...>/node_modules/nativescript-ui-dataform/angular/fesm2015/nativescript-ui-dataform-angular.js for source-map flattening: ENOENT: no such file or directory, open '<...>/node_modules/nativescript-ui-dataform/angular/fesm2015/nativescript-ui-dataform-angular.js.map'

trane77 avatar Jul 31 '20 04:07 trane77

Same warning with nativescript-ui-listview and nativescript-ui-sidedrawer and latest platform versions:

> ngcc --properties es2015 module main --first-only
...
Warning: Unable to fully load <...>/node_modules/nativescript-ui-listview/angular/fesm2015/nativescript-ui-listview-angular.js for source-map flattening: ENOENT: no such file or directory, open '<...>/node_modules/nativescript-ui-listview/angular/fesm2015/nativescript-ui-listview-angular.js.map'
Warning: Unable to fully load <...>/node_modules/nativescript-ui-sidedrawer/angular/fesm2015/nativescript-ui-sidedrawer-angular.js for source-map flattening: ENOENT: no such file or directory, open '<...>/node_modules/nativescript-ui-sidedrawer/angular/fesm2015/nativescript-ui-sidedrawer-angular.js.map'

Environment

jessorlisa avatar Oct 01 '20 09:10 jessorlisa

Sam issue with nativescript-ui-gauge since upgrading to angular 10 and NS7

Warning: Unable to fully load /Users/corey/Documents/Development/***/node_modules/nativescript-ui-gauge/angular/fesm2015/nativescript-ui-gauge-angular.js

"scripts": { "clean": "npx rimraf hooks platforms node_modules package-lock.json && npm i", "lint": "tslint "app/**/*.ts"", "ngcc": "ngcc --properties es2015 module main --first-only", "postinstall": "npm run ngcc", "snyk-protect": "snyk protect", "prepare": "npm run snyk-protect", "test": "snyk test" }, "dependencies": { "@angular/animations": "~10.1.0", "@angular/common": "~10.1.0", "@angular/compiler": "~10.1.0", "@angular/core": "~10.1.0", "@angular/forms": "~10.1.0", "@angular/platform-browser": "~10.1.0", "@angular/platform-browser-dynamic": "~10.1.0", "@angular/router": "~10.1.0", "@nativescript/angular": "~10.1.7", "@nativescript/core": "~7.0.12", "@nativescript/firebase": "^11.0.0", "@nativescript/secure-storage": "~3.0.0", "@nstudio/nativescript-pulltorefresh": "3.0.1", "@types/node": "^12.12.12", "html-encoder-decoder": "^1.3.8", "jwt-decode": "^2.2.0", "nativescript-appversion": "^1.4.4", "nativescript-awesome-webview-with-custom-menu-items": "^50.1.1", "nativescript-email": "^1.6.0", "nativescript-https": "^1.2.2", "nativescript-iqkeyboardmanager": "^1.5.1", "nativescript-ngx-fonticon": "^7.0.0", "nativescript-root-detection": "^1.0.0", "nativescript-taptic-engine": "^2.1.0", "nativescript-ui-gauge": "^7.0.2", "reflect-metadata": "~0.1.12", "nativescript-secure-storage": "^2.6.0", "nativescript-watchos-connector": "^1.0.11", "rxjs": "^6.6.0", "rxjs-compat": "^6.5.3", "zone.js": "~0.11.1", "snyk": "^1.335.0" }, "devDependencies": { "@angular/compiler-cli": "~10.1.0", "@nativescript/android": "7.0.1", "@nativescript/types": "~7.0.4", "@nativescript/webpack": "~3.0.8", "@ngtools/webpack": "~10.0.0", "codelyzer": "~5.2.0", "node-sass": "^4.13.1", "tslint": "~5.20.1", "typescript": "~3.9.0", "webpack-obfuscator": "^0.27.2" },

mcalc001 avatar Oct 26 '20 11:10 mcalc001

+1 , should just be a simple option during build? :(

saschaarthur avatar Jan 25 '21 12:01 saschaarthur

Same Here

PaoloMarconi95 avatar Apr 09 '21 15:04 PaoloMarconi95

Still waiting for an answer as well. :(

FelOrtiz avatar Aug 04 '21 20:08 FelOrtiz

The same error only with /node_modules/nativescript-ripple/angular/fesm2015/nativescript-ripple-angular.js

Aden-Kurmanov avatar Aug 05 '21 06:08 Aden-Kurmanov