Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@angular/platform-browser/platform-browser"' has no exported member 'HammerLoader'

I tried to run "ng build", I'm getting following error.

"ERROR in node_modules/@angular/material/core/typings/common-behaviors/common-module.d.ts(9,10): error TS2305: Module '"../Frontend/node_modules/@angular/platform-browser/platform-browser"' has no exported member 'HammerLoader'."

pacakge.json contain with "@angular/platform-browser" and "@angular/material". I'm trying to use here angular material table.

I couldn't figure it why this error is coming and the possible solution.

like image 384
Manojb86 Avatar asked Oct 24 '18 12:10

Manojb86


1 Answers

Check the @angular/material version, the new version only work with angular 7. Try install older version (p.e npm i @angular/[email protected]). This works for me.

like image 124
Ivan Galan Avatar answered Sep 28 '22 13:09

Ivan Galan