angular-peerjs icon indicating copy to clipboard operation
angular-peerjs copied to clipboard

Critical dependency: the request of a dependency is an expression

Open felixchristo opened this issue 4 years ago • 3 comments

I am getting warning Critical dependency: the request of a dependency is an expression in ng serve, but its working fine. But I am getting same while doing ng build --prod and build is getting failed. Any solution ? Capture

felixchristo avatar Jun 14 '21 11:06 felixchristo

Which version of peerjs are you using?

ullalaaron avatar Jun 14 '21 12:06 ullalaaron

{ "name": "webrtc", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "~9.0.3", "@angular/cdk": "^9.2.4", "@angular/common": "~9.0.3", "@angular/compiler": "~9.0.3", "@angular/core": "~9.0.3", "@angular/forms": "~9.0.3", "@angular/material": "^9.2.4", "@angular/platform-browser": "~9.0.3", "@angular/platform-browser-dynamic": "~9.0.3", "@angular/router": "~9.0.3", "peerjs": "^1.3.1", "rxjs": "~6.5.4", "tslib": "^1.10.0", "uuid": "^8.3.2", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.900.4", "@angular/cli": "~9.0.4", "@angular/compiler-cli": "~9.0.3", "@angular/language-service": "~9.0.3", "@types/node": "^12.11.1", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "codelyzer": "^5.1.2", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.3.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~2.1.0", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.2", "protractor": "~5.4.3", "ts-node": "~8.3.0", "tslint": "~5.18.0", "typescript": "~3.7.5" } }

I also tried updating to peerjs 1.3.2. Still getting the same issue..

felixchristo avatar Jun 15 '21 04:06 felixchristo

i also facing the same issue . Any solution? @ullalaaron

my version is "peerjs": "^1.3.1",

./node_modules/peerjs/dist/peerjs.min.js:11:46-50 - Warning: Critical dependency: the request of a dependency is an expression

assim-fayas avatar Oct 15 '23 10:10 assim-fayas