There are more reasons for getting this error. This means your application failed to build as expected.
Check for the following..
- Check whether the node_modules version are not changed, this is the
primary reason.
- If you are moving from Some other Build tool to webpack, For example
Systemjs to Webpack, If some of your dependencies are not modular in
nature you may get this error, check for that too.
- Check for Obsolete features of the framework, Ex: "HTTP_PROVIDERS"
in angular 2 and remove them.
- If you are upgrading, then make sure you are following the current
syntax of the Framework, for Ex: routing syntax has been changed in
Angular2..
- Check the Bootstraping process and make sure you are loading the
correct Module.