ES6/2015 importing angular-filter ?
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from a8m/angular-filter
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a8m/angular-filter#267 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a8m/angular-filter#260 · 1 reaction ·
-
KiB and MiB are wrongly used in place of kB and MBPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#254 · 2 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#250 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#208 · 1 comment · 1 reaction ·
All issues in a8m/angular-filter
Similar issues
-
triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
MicrosoftDocs/edge-developer#3970 ·
Maintainers usually reply within 1 day
-
agent/scanner hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
PWA stores a grouped number entry 1000x too small in German localePossibly taken @Minhal128 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Add: YRF MusicOpencheck:passed feeds:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
iptv-org/database#37102 · 2 comments ·
Maintainers usually reply within 9 days
-
[workshop-sim] Repair: Add a fallback sample .lock.yml to the Agentic Workflows Intro Activity 1Openfeedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
githubnext/gh-aw-workshop#4328 ·
Maintainers usually reply within 1 day