browserify / browserify/wzrd.in

Things that need peerDeps (like react) fail to build for multibundles

Open
#130 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
637
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Hi!

Thanks for this fantastic service! I was trying out a package - [react-tag-input](https://www.npmjs.com/package/react-tag-input) in ESNext and I got this weird issue in the console. The message directed me to post this here, so that's why I'm here.

```
--- error #0: ---
(logs uuid: 52e09ea0-4317-11e6-8c65-79f7842fe37c )

Error: "browserify exited with code 1"

code: 1
stderr: Error: Cannot find module 'react-tag-input' from '/tmp/react-tag-input11666-1238-1kr0jwk/node_modules/react-tag-input'
at /home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
at process (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
at ondir (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
at load (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at Object.oncomplete (fs.js:107:15)

dirPath: /tmp/react-tag-input11666-1238-1kr0jwk
------
```

You can see what I have on ESNextBin [here](https://esnextb.in/?gist=ad8b5ea44409d0591472ea744ff6478e) and see the package source [here](https://github.com/prakhar1989/react-tags#react-tags). As a package author, I'd love to give an example of the package usage on ESNextBin, so if you have any ideas on what I can do to make this work, I'll highly appreciate it. Thanks! 👍

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure using the linked ESNextBin example and inspect the reported browserify module-resolution error for react-tag-input. Trace how multibundles handle peer dependencies such as react; done means the linked package builds successfully without the missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.