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

你。 提交于 2019-12-10 02:04:06

问题


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.


回答1:


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




回答2:


This is Just a Version Problem, Try This

npm i @angular/material@6.4.7


来源:https://stackoverflow.com/questions/52968879/angular-platform-browser-platform-browser-has-no-exported-member-hammerloade

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!