7rulnik / source-map-js

Consume and generate source maps.
Other
95 stars 14 forks source link

Error in source-map.d.ts version 1.2.1 #28

Open ashish-moglix opened 1 month ago

ashish-moglix commented 1 month ago

Hi,

I am not aware that how source-map-js is used in saas package but during Angular project compilation I am getting syntax error with source-map-js 1.2.1 which is installed as saas dependecy.

to fix the compilation issue, I have to manually override the version to 1.2.0, Please refer the below screenshot image

7rulnik commented 1 month ago

@ashish-moglix what TS version are you using? Could you provide a repro?

ashish-moglix commented 1 month ago

@ashish-moglix what TS version are you using? Could you provide a repro?

{ "name": "test-app", "version": "0.0.1", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "dev": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve --aot --host 0.0.0.0" }, "private": true, "dependencies": { "@angular-material-components/datetime-picker": "^2.0.3", "@angular-material-components/moment-adapter": "^2.0.1", "@angular/animations": "~7.2.0", "@angular/cdk": "^7.3.7", "@angular/common": "~7.2.0", "@angular/compiler": "~7.2.0", "@angular/core": "~7.2.0", "@angular/flex-layout": "^7.0.0-beta.20", "@angular/forms": "~7.2.0", "@angular/material": "^7.3.7", "@angular/platform-browser": "~7.2.0", "@angular/platform-browser-dynamic": "~7.2.0", "@angular/router": "~7.2.0", "angular-code-input": "^1.6.0", "angular-mentions": "1.0.3", "angular-ng-stepper": "^1.0.6", "chart.js": "^4.4.0", "core-js": "^2.5.4", "file-saver": "^2.0.5", "hammerjs": "^2.0.8", "highcharts": "^9.3.2", "mat-select-autocomplete": "^1.3.0", "moment": "2.18.1", "ng-charts": "^1.0.0-alpha", "ng-dialog-animation": "^9.0.3", "ng-file-drag-drop": "0.0.2", "ng2-search-filter": "^0.5.1", "ngx-csv": "^0.3.2", "ngx-daterangepicker-material": "2.4.1", "ngx-infinite-scroll": "^7.1.0", "ngx-mat-daterange-picker": "1.1.4", "ngx-mat-select-search": "3.1.2", "ngx-toastr": "^6.4.1-beta.0", "nvm": "0.0.4", "remixicon": "^3.6.0", "rxjs": "~6.3.3", "rxjs-compat": "^6.6.3", "sass": "^1.45.1", "tslib": "^1.9.0", "zone.js": "~0.8.26", "source-map-js": "1.2.0" }, "devDependencies": { "@angular-devkit/build-angular": "^0.13.10", "@angular/cli": "^7.3.10", "@angular/compiler-cli": "~7.2.0", "@angular/language-service": "~7.2.0", "@types/jasmine": "~2.8.8", "@types/jasminewd2": "~2.0.3", "@types/node": "~8.9.4", "codelyzer": "~4.5.0", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.0.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.2.2" } }

7rulnik commented 1 month ago

@ashish-moglix please run:

yarn tsc --version

But anyway you are using pretty old version of TS. Consider upgrading to https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/