Open mattdesl opened 10 years ago
Interesting - I recognise both these errors, will look into it shortly and let you know :)
cool.. no rush, i hacked a fix by ignoring the problematic modules
Cool – do you have a test case I can break it with?
Unfortunately the code is private. I'll see if I can replicate it tho
Sent from my iPhone
On Aug 15, 2014, at 4:18 PM, Hugh Kennedy notifications@github.com wrote:
Cool – do you have a test case I can break it with?
— Reply to this email directly or view it on GitHub.
Getting the same error unfortunately. @mattdesl did you get around to reproducing the problem?
I was able to reproduce it on a private repo. Basically this was breaking it:
browserify -r app/foo:foo
Where "foo" was a module that had its own package and index.js.
If I remember correctly, I lazily fixed it by doing npm link app/foo
which symlinked it into the node_modules dir. Once the module could be required without the -r option, it seemed to work.
Sent from my iPhone
On Oct 13, 2014, at 6:21 PM, Jonathan Kim notifications@github.com wrote:
Getting the same error unfortunately. @mattdesl did you get around to reproducing the problem?
— Reply to this email directly or view it on GitHub.
this also seems to happen if you have custom NODE_PATH like NODE_PATH=$NODE_PATH:lib/
and in your app you require like require('ding/dong')
where dong.js is in lib/ding/dong.js
Thought I'd add that this appears to continue to be an issue. I get the same error when creating a 'vendor' bundle that consists solely of --require
'd modules, e.g.
$ browserify -r foo -r bar -r baz --full-paths > vendor.js
I'm getting the same issue with --require
-only bundles.
+1 cant compile with --require
See also #41. Should be fixed by #45.
With
-r ./foo/bar:foo
option to browserify, I'm getting this error:Will try to look into it further..
EDIT: Seems related to browser-unpack; the latest version
1.0.0
fixes the problem but introduces another:Using a full path for my
-r
option doesn't fix the issue.