jmdobry / angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.
http://jmdobry.github.io/angular-cache
MIT License
1.39k stars 156 forks source link

Exception when including angular-cache from bower #220

Closed smelukov closed 8 years ago

smelukov commented 8 years ago
Uncaught ReferenceError: require is not defined
    webpackUniversalModuleDefinition@angular-cache.js:12
smelukov commented 8 years ago

I'm using webpack. angular and angular-cache are including in a common chunk (vendors) thru bower-webpack-plugin

jmdobry commented 8 years ago

I'm not sure what to do with this bug report. Can you provide more information so I can easily reproduce the issue? Perhaps some sample code I could clone and try myself? I've never used the bower-webpack-plugin. I would expect someone who's using webpack to just install dependencies from NPM.

deini commented 8 years ago

I'm using it with bower + webpack + bower-webpack-plugin with no problems, I just use one chunk tho but I don't think that would be related.

jmdobry commented 8 years ago

@deini If you're willing and have a moment, perhaps you could share a simplified version of your setup? Thanks either way.