thenikso / angular-inview

AngularJS directive to check if a DOM element is in the browser viewport.
http://thenikso.github.io/angular-inview/
MIT License
480 stars 112 forks source link

Minification using Grunt Build (usemin) breaks app #105

Open nroma opened 8 years ago

nroma commented 8 years ago

I made an AngularJS project using yeoman and related build tools. Running the command: grunt serve everything is working as expected.

Running the command: grunt serve:dist or grunt build the generated app in dist folder is not working giving the following error:

vendor.f13d432c.js:1 Uncaught Error: [$injector:modulerr] Failed to instantiate module MyApp due to:
Error: [$injector:modulerr] Failed to instantiate module angular-inview due to:
Error: [$injector:nomod] Module 'angular-inview' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

I think is something related on usemin task for minification process.

Is anybody else experiencing this problem?

thenikso commented 8 years ago

strange, I never had minification issues. Also the error seams more like as if your build process is not including angular-inview in your vendors. could it be?

Usama4745 commented 4 years ago

I am trying with gulp.js same error like nroma is facing