Skip to content
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

Problems just after initial installation #18

Closed
mik01aj opened this issue Jan 27, 2015 · 2 comments
Closed

Problems just after initial installation #18

mik01aj opened this issue Jan 27, 2015 · 2 comments

Comments

@mik01aj
Copy link
Contributor

mik01aj commented Jan 27, 2015

Hi, I just created a new project using yo react-gulp-browserify. I run gulp watch and get the following output:

[12:17:28] Using gulpfile ~/code/react-frontend/gulpfile.js
[12:17:28] Starting 'html'...
[12:17:28] Starting 'scripts'...
[12:17:28] Starting 'bower'...
[12:17:28] Finished 'bower' after 1.34 ms
[12:17:28] Starting 'serve'...
[12:17:28] Webserver started at http://localhost:9000
[12:17:28] Finished 'serve' after 231 ms
[12:17:28] all files 1.87 kB
[12:17:28] Finished 'html' after 501 ms
[12:17:30] Finished 'scripts' after 2.04 s
[12:17:30] Starting 'bundle'...

events.js:74
        throw TypeError('Uncaught, unspecified "error" event.');
              ^
TypeError: Uncaught, unspecified "error" event.
    at TypeError (<anonymous>)
    at Transform.emit (events.js:74:15)
    at Transform.onerror (/Users/mik01aj/code/react-frontend/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:558:12)
    at Transform.emit (events.js:95:17)
    at Transform.<anonymous> (/Users/mik01aj/code/react-frontend/node_modules/gulp-useref/index.js:76:42)
    at Array.forEach (native)
    at Transform.<anonymous> (/Users/mik01aj/code/react-frontend/node_modules/gulp-useref/index.js:66:35)
    at Array.forEach (native)
    at Transform.<anonymous> (/Users/mik01aj/code/react-frontend/node_modules/gulp-useref/index.js:44:36)
    at Array.forEach (native)

I don't understand those error messages (gulpjs/gulp#881), but maybe you'll do. Certainly that's something that shouldn't happen :)

@mik01aj
Copy link
Contributor Author

mik01aj commented Jan 27, 2015

Ah, I got it, I had to remove the bower stuff from index.html.

Btw, why are you shipping bower with the generator without mentioning it in the doc? I don't need Bower, because with browserify I can include CommonJS modules.

EDIT: I noticed that you mentioned bower install in the README... Adding it to "what's inside" would be nice, though.

Cheers!
-mik01aj

@mik01aj mik01aj closed this as completed Jan 27, 2015
@mik01aj mik01aj reopened this Jan 27, 2015
@mik01aj
Copy link
Contributor Author

mik01aj commented Jan 27, 2015

PS. Adding info about what's optional would be very nice as well. I made a pull request with a README update: #19

@mik01aj mik01aj closed this as completed Jan 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant