I want to build a web application and I have started building this by using the angular fullstack generator. This generator uses webpack and this is the first time I am using webpack.
I have been trying to add the ngMaterial
dependency by installing it with:
npm install angular-material --save
I have added the dependency in the config.entry.vendor
from the webpack.make.js
file but when I tried to import the ngMaterial
i received the following error:
ERROR in ./client/app/app.js
Module not found: Error: Cannot resolve module 'ngMaterial' in path\client\app
@ ./client/app/app.js 21:18-39
How can I inject a dependency with webpack?