Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ES6/2015 importing angular-filter ?

Open
#215 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
angularjs
Domain
frontend

Research direction

Check the angular-filter module's export format in the dist file to see if it's a proper AngularJS module. Look at how other modules like angular-translate are imported and compare. Test by importing the non-minified version or checking the source entry point. Verify the module registration in the AngularJS app.

Written by the indexing model from the issue text.

Description

Hi,

I am trying to use es2015 to import angular-filter. I have it working from other modules but I get an error on this saying

Failed to instantiate module {} due to:
Error: [ng:areq] Argument 'module' is not a function, got Object

I am using the following

import angularTranslate from 'angular-translate';
import angularFilter from 'angular-filter/dist/angular-filter.min';

const root = angular
  .module('info.app', [
    angularTranslate,
    angularFilter
  ])

If I remove the angularFilter from the module then everything starts to work. Maybe I am not importing it correctly ?

Any help appreciated.

Thanks

Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a8m/angular-filter

All issues in a8m/angular-filter

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.