Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.js made Webpack include Angular twice #80

Open
madflow opened this issue Sep 28, 2017 · 0 comments
Open

index.js made Webpack include Angular twice #80

madflow opened this issue Sep 28, 2017 · 0 comments

Comments

@madflow
Copy link

madflow commented Sep 28, 2017

This is a quick hint for anyone having the same problem and using Webpack. Due to angular-hammer we had Angular duplicated in chunks.

The code in index.js made Webpack include Angular twice.

var angular = require('angular');
Hammer = require('hammerjs');
require('./angular.hammer');

A fix is described here:

webpack/webpack#2134

Or import it differently I guess:

import hammerAngular from 'angular-hammer/angular-hammer';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant