Open prakhar1989 opened 8 years ago
Interesting. I would have to play with this more, but a few ideas:
1) Is this related to known problems with peer dependency resolution? I feel like this limitation is really painful for react demos. 2) What API call is esnextbin making? Is there a good way to find that out?
Doesn't matter, I have repro here:
https://wzrd.in/standalone/react-tag-input@latest
3) Could this be related to the fact that I've been putting off upgrading wzrd.in to node 4? D:
package.json looks well-formed but I see a lot of
https://github.com/prakhar1989/react-tags/blob/master/dist-modules/reactTags.js#L5
in the main export. Those can cause problems with browserify.
One thing you can try doing too, is to make a tmpdir, go into it, make a package.json, npm install react-tag-manager and then run node -pe "require('react-tag-manager')"
and see what happens?
Thanks a ton for looking into this so quickly! The above suggestion is the first thing I tried and it seems to work fine -
λ node -pe "require('react-tag-input').WithContext"
{ [Function: DragDropContextContainer]
DecoratedComponent:
{ [Function]
displayName: 'ReactTags',
propTypes:
{ tags: [Object],
placeholder: [Object],
labelField: [Object],
suggestions: [Object],
delimiters: [Object],
autofocus: [Object],
inline: [Object],
handleDelete: [Function: bound checkType],
handleAddition: [Function: bound checkType],
handleDrag: [Object],
allowDeleteFromEmptyInput: [Object],
handleInputChange: [Object],
minQueryLength: [Object],
shouldRenderSuggestions: [Object],
removeComponent: [Object],
autocomplete: [Object],
readOnly: [Object],
classNames: [Object] },
getDefaultProps: { [Function: getDefaultProps] isReactClassApproved: {} },
defaultProps:
{ placeholder: 'Add new tag',
tags: [],
suggestions: [],
delimiters: [Object],
autofocus: true,
inline: true,
allowDeleteFromEmptyInput: true,
minQueryLength: 2,
autocomplete: false,
readOnly: false } },
displayName: 'DragDropContext(ReactTags)',
childContextTypes: { dragDropManager: [Function: bound checkType] } }
Let me know if there's anything else I can provide to help you debug! Thanks =)
It might be a while until I can get back to this, just a heads-up.
Sure no problem. Really appreciate any time you can put into this! Thank you :) On Jul 5, 2016 10:35 PM, "Joshua Holbrook" notifications@github.com wrote:
It might be a while until I can get back to this, just a heads-up.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jfhbrook/wzrd.in/issues/130#issuecomment-230657023, or mute the thread https://github.com/notifications/unsubscribe/AAnoISJ0k-iAXzSNP0gakmDdaQ4sV6CEks5qSxR5gaJpZM4JFrNW .
Hi!
Thanks for this fantastic service! I was trying out a 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.
You can see what I have on ESNextBin here and see the package source here. 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! 👍