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, ornpm audit
for details
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";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With