evanw / node-source-map-support

Adds source map support to node.js (for stack traces)
MIT License
2.16k stars 222 forks source link

Module not found: Error: Can't resolve 'crypto' in '\ClientApp\node_modules\typescript\lib' #287

Open shwetabab opened 3 years ago

shwetabab commented 3 years ago

Hello,

I am facing below issue:

WARNING in ./node_modules/typescript/lib/typescript.js Module not found: Error: Can't resolve 'crypto' in 'C:\Work\VBS Portal\FeatureCode\InsVerifyApp\InsVerifyApp\ClientApp\node_modules\typescript\lib'

WARNING in ./node_modules/source-map-support/source-map-support.js Module not found: Error: Can't resolve 'fs' in 'C:\Work\VBS Portal\FeatureCode\InsVerifyApp\InsVerifyApp\ClientApp\node_modules\source-map-support'

WARNING in ./node_modules/source-map-support/source-map-support.js Module not found: Error: Can't resolve 'module' in 'C:\Work\VBS Portal\FeatureCode\InsVerifyApp\InsVerifyApp\ClientApp\node_modules\source-map-support'

Below is the package.json { "name": "oauth-client", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build-qa": "ng build --configuration=qa --output-hashing=all", "build-dev": "ng build --configuration=dev --output-hashing=all", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular-devkit/build-angular": "^0.803.29", "@angular/animations": "~8.2.14", "@angular/cdk": "~8.2.3", "@angular/common": "~8.2.14", "@angular/compiler": "~8.2.14", "@angular/core": "~8.2.14", "@angular/forms": "~8.2.14", "@angular/material": "^8.2.3", "@angular/platform-browser": "~8.2.14", "@angular/platform-browser-dynamic": "~8.2.14", "@angular/router": "~8.2.14", "@ng-bootstrap/ng-bootstrap": "~5.2.2", "angular-material": "^1.2.1", "bootstrap": "^4.5.2", "core-js": "^2.6.11", "font-awesome": "^4.7.0", "jquery": "^3.5.1", "ngx-spinner": "^7.2.0", "oidc-client": "^1.10.1", "path": "^0.12.7", "rxjs": "^6.6.3", "rxjs-compat": "^6.6.3", "source-map-support": "^0.4.3", "tslib": "^1.14.0", "zone.js": "~0.8.26" }, "devDependencies": { "@angular/cli": "^8.3.29", "@angular/compiler-cli": "~8.2.14", "@angular/language-service": "~8.2.14", "@types/jasmine": "^2.8.17", "@types/jasminewd2": "^2.0.8", "@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.1.1", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "^5.4.4", "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.5.3" } }

Please help