Here's the solution to the first error message in your screenshot “angular.module is not a function”: Angular 1 does not work with webpack without a pad (see https://github.com/webpack/webpack/issues/2049 ). Try this webpack bootloader configuration:
module: { loaders: [ { test: require.resolve('angular'), loader: 'exports?window.angular' }, ] }, plugins: [ new webpack.ProvidePlugin({ 'angular': 'angular', }), ],
This should initialize the Angular object properly, and not by default, to set it to an empty object (which does not have a property called module).
source share