שגיאת Uncaught ReferenceError
-
השתבש לי משהו בפרוייקט Angular שקשור כנראה לתלויות.
השגיאה בקונסול היא:node_modules\@popperjs\core\dist\cjs\popper.js:7 Uncaught ReferenceError: exports is not defined at node_modules\@popperjs\core\dist\cjs\popper.js:7:1 (anonymous) @ node_modules\@popperjs\core\dist\cjs\popper.js:7 core.mjs:25859 Angular is running in development mode. Call enableProdMode() to enable production mode. Login:1 [DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) <input _ngcontent-jpb-c102 type="password" id="inputPassword" class="form-control ng-valid ng-dirty ng-touched" ng-reflect-model="3333"> index.js:551 [webpack-dev-server] Live Reloading enabled. core.mjs:6412 ERROR RangeError: Maximum call stack size exceeded at HTMLDivElement.toString (<anonymous>) at Object.toString (zone.js:1588:39) at getWindow (node_modules\@popperjs\core\dist\cjs\popper.js:14:1) at getComputedStyle (node_modules\@popperjs\core\dist\cjs\popper.js:128:1) at getComputedStyle (node_modules\@popperjs\core\dist\cjs\popper.js:128:1) at getComputedStyle (node_modules\@popperjs\core\dist\cjs\popper.js:128:1) at getComputedStyle (node_modules\@popperjs\core\dist\cjs\popper.js:128:1) at getComputedStyle (node_modules\@popperjs\core\dist\cjs\popper.js:128:1) at getComputedStyle (node_modules\@popperjs\core\dist\cjs\popper.js:128:1) at getComputedStyle (node_modules\@popperjs\core\dist\cjs\popper.js:128:1) handleError @ core.mjs:6412 handleError @ core.mjs:13236 executeListenerWithErrorHandling @ core.mjs:15653 wrapListenerIn_markDirtyAndPreventDefault @ core.mjs:15685 next @ Subscriber.js:91 _next @ Subscriber.js:60 next @ Subscriber.js:31 (anonymous) @ Subject.js:34 errorContext @ errorContext.js:19 next @ Subject.js:27 emit @ core.mjs:23137 (anonymous) @ primeng-toast.mjs:24 timer @ zone.js:2405 invokeTask @ zone.js:406 runTask @ zone.js:178 invokeTask @ zone.js:487 ZoneTask.invoke @ zone.js:476 data.args.<computed> @ zone.js:2385 DevTools failed to load source map: Could not load content for chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND
ניסיתי ב-angular.json את הקומבינציות הבאות אבל השגיאה עדין מופיעה
1"scripts": [ "node_modules/jquery/dist/jquery.min.js", "node_modules/bootstrap/dist/js/bootstrap.js", "node_modules/popper.js/dist/esm/popper.js", "node_modules/popper.js/dist/umd/popper.js" ]
2
"scripts": [ "node_modules/jquery/dist/jquery.min.js", "node_modules/bootstrap/dist/js/bootstrap.js" ]
בהמשך יש עוד שגיאה שגם היא נובעת מבעיה בספריה בשם popper.
מה אפשר לעשות?תודה חברים