max-mapper / max-mapper/requirebin
Working with Angular?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 389
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
Require in angular:
var ng = require('angular');
Make a module:
ng.module('app', []);
Uncaught TypeError: undefined is not a function
Has anyone encountered this? angularjs is another npm module that is apparently a browserify shim, but it just causes requirebin to literally explode.
Full error below:
Bundling error:
---FLAGRANT SYSTEM ERROR---
--- error #0: ---
(logs uuid: 3d1cf350-828b-11e4-af85-ab6c8613f7fd )
Error: "browserify exited with code 1"
code: 1
stderr: Error: Cannot find module 'angular' from '/tmp/angularjs1141113-620-1i03dpo/node_modules/angularjs'
at /home/admin/browserify-cdn/node_modules/browserify/node_modules/resolve/lib/async.js:50:17
at process (/home/admin/browserify-cdn/node_modules/browserify/node_modules/resolve/lib/async.js:119:43)
at /home/admin/browserify-cdn/node_modules/browserify/node_modules/resolve/lib/async.js:128:21
at load (/home/admin/browserify-cdn/node_modules/browserify/node_modules/resolve/lib/async.js:60:43)
at /home/admin/browserify-cdn/node_modules/browserify/node_modules/resolve/lib/async.js:66:22
at /home/admin/browserify-cdn/node_modules/browserify/node_modules/resolve/lib/async.js:21:47
at Object.oncomplete (fs.js:107:15)
dirPath: /tmp/angularjs1141113-620-1i03dpo
This is probably an issue with the package, and not browserify-cdn itself.
If you feel differently, feel free to file a bug report at:
https://github.com/jesusabdullah/browserify-cdn/issues
Include the ENTIRETY of the contents of this message, and he can
try to help you out.
Have a nice day!
Contributor guide
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.
Research direction
Start by reproducing the require('angular') example and inspect the bundling error from node_modules/angularjs and browserify's module resolver. Determine whether the failure is in requirebin or the angularjs package; done means the example bundles and ng.module works, or the issue is clearly documented as an upstream package problem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100