New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gulp watch-examples fails #1
Comments
To be more specific, this is the part that seems to cause the actual error: I'm trying to expose the (I am using However, it breaks when the
If I exclude
... it works for the first build, but fails on subsequent builds with a different error ( |
Fixed by browserify/browserify#892 |
Updating the react select
Remove loadOptions manipulation of input value
Allow isOpen to be controlled by the parent component
…lick Allow event bubbling for dropdown click
Not sure if this is misconfiguration or an issue with Browserify / Watchify.
When building the example files, using
browserify.require
files with Watchify, with the following error thrown:Uncaught Error: Cannot find module '[...]/react-select/node_modules/react/react.js'
The issue appears to be the use of
watchify.args
, which is equivalent to{ cache: {}, packageCache: {}, fullPaths: true }
, and specifically the combination of thefullPaths: true
option andrequire('react')
.It's possible that exposing multiple packages in a bundle using
browserify:require
doesn't work withwatchify
; this would be a shame though, because it's useful to be able to develop both thereact-select
component (as exposed from./lib/select.js
) and the exampleapp.js
file at the same time, using Watchify.To reproduce,
npm install
thengulp build-examples
./examples/index.html
in a browser (works)gulp watch-examples
./examples/index.html
in a browser (breaks)cc @cgiffard
The text was updated successfully, but these errors were encountered: