Sunday, February 24, 2019

Module not found: Error: Can't resolve 'hammerjs'

Hi Guys ,

Today I have faced this error :

Module not found: Error: Can't resolve 'hammerjs'

I faced this error since i didn't installed material module. Here's the solution if you face the same  issue.
Go to the command prompt and type the following command:

npm install --save hammerjs

Once installed ng serve,it should work.

Generally we get Module not found error means a module is missing . So we need to install the missing module in node js through npm tool.
After the module is installed verify the path ../node_modules there should be a folder created like this.

\hammerjs

The app should be restarted .

No comments:

Post a Comment

ec2-user@ec2 Permission denied