Skip to content

angular.module is not a function #588

@vishalrajole

Description

@vishalrajole

I am using

Angular 1.3.13
Webpack 1
Node 6.2.1

Steps to reproduce

  1. Install slider using bower bower install --save angularjs-slider and installed
    "angularjs-slider": "^6.4.0"
  2. Include bower dependency as
require('bower_components/angularjs-slider/dist/rzslider.min.css');
require('bower_components/angularjs-slider/src/rzslider.js');

  1. Include 'rzModule' into angular module dependancy as
angular.module('myApp', [
        'ngMessages',
        'ngAnimate',
        'ui.router',
        'angularFileUpload',
        'textAngular',
        'ui.bootstrap',
        'rzModule'
    ])

Demo: http://jsfiddle.net/cwhgLcjv/ (fork this example and update the link)

Expected behaviour

It should load angular-slider dependancy

Actual behaviour

Getting "angular.module is not a function" error while initializing it. Attaching screenshots

screen shot 2017-10-30 at 5 33 30 pm

screen shot 2017-10-30 at 5 34 54 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions