Bundling causes an error with angular