klei / klei/gulp-angular-filesort
Cannot use a variable to set dependencies of a module
- Dominant language
- JavaScript
- Stars
- 131
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
It seems like dependencies cannot be set in a variable?
``` js
// OK
angular.module(moduleName, []);
// fails
var dependencies = [];
angular.module(moduleName, dependencies);
```
I get the following trace
```
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: Error in parsing: "/config.js", Cannot call method 'map' of undefined
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report with the angular.module examples and the referenced config.js input, then inspect the parser path that produces the stream.js:94 error. Confirm whether dependencies supplied through a variable are handled, and use the reported case to verify that parsing completes without the undefined map error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100