Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng build spills a lot of errors... can't launch my app

I don't know what happened. I was coding... then everything just broke.

When I run ng build or ng serve, I now get the following error messages:

ERROR in ./node_modules/saucelabs/index.js Module not found: Error: Can't resolve './lib-cov/SauceLabs' in '/Users/mlgyshan/Documents/GitHub/Nutanix2/FlexMachineLearning/FlexMachineLearning/static/node_modules/saucelabs' ERROR in ./node_modules/protractor/built/runner.js ...


I ran npm i and it gave the following output:

npm WARN [email protected] requires a peer of @angular/compiler@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of @angular/core@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of typescript@>=2.4.2 <2.9 but none is installed. You must install peer dependencies yourself.

audited 29419 packages in 9.015s found 58 vulnerabilities (19 low, 28 moderate, 11 high) run npm audit fix to fix them, or npm audit for details

like image 812
AskYous Avatar asked Nov 28 '22 06:11

AskYous


1 Answers

I found out what happened. I had this line:

import { EventEmitter } from "protractor";

But I had to change it to this:

import { EventEmitter } from "@angular/core";
like image 179
AskYous Avatar answered Dec 22 '22 12:12

AskYous