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

3

12

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.

Tem answered 24/10, 2018 at 12:21 Comment(0)
S
26

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.

Sabadilla answered 25/10, 2018 at 11:53 Comment(2)
@Tenzolinho Have you checked if the major version of angular is the same as the angular version? If you use angular 5 your material version should also be 5Sabadilla
I just needed to restart visual studio code and it worked. Thank you!Titanesque
V
2

This is Just a Version Problem, Try This

npm i @angular/[email protected]
Vigil answered 12/12, 2018 at 11:1 Comment(0)
A
0

try installing angular material again

ng add @angular/material

angular material - get started

Alberthaalberti answered 4/6, 2020 at 12:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.