-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting MockMatchMedia error #1925
Comments
Same issue here |
Same issue too |
I get a similar error when using the docker method:
Adding "@angular/flex-layout": "^6.0.0-beta.16" to package.json seems to fix it. EDIT: Apparently, it only fixes the above error but creates new problems. Now I'm getting the following errors when starting the application (
As far as I could find out it is because the dependency npm remove --save webpack
rm -r node_modules
rm package-lock.json
npm install See also here: Angular/universal-starter #581 |
This issue is because of webpack... Steps I took to fix this problem: Package.json: remove webpack from Dependencies Also for @angular/flex-layout', you can comment that code and try rebuilding the app. |
After npm start getting this "ERROR in src/app/shared/shared.module.ts(4,34): error TS2307: Cannot find module '@angular/flex-layout'"
and when install @angular/flex-layout then getting this error.
ERROR in node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(25,15): error TS2416: Property '_registry' in type 'MockMatchMedia' is not assignable to the same property in base type 'MatchMedia'.
The text was updated successfully, but these errors were encountered: