Coder Social home page Coder Social logo

Comments (10)

RickWong avatar RickWong commented on September 23, 2024

Just did a fresh install as well but I don't get this error. Can you do npm uninstall piping; npm cache clean; npm install piping and try again? If that doesn't work maybe piping isn't supported by your system? Definitely strange though.

from react-isomorphic-starterkit.

RickWong avatar RickWong commented on September 23, 2024

Also can you try this in babel.server.js:

if (!require("piping")({main: "./src/server.js", hook:true})) {
  ...

from react-isomorphic-starterkit.

Azaeres avatar Azaeres commented on September 23, 2024

It looks like we're running into the system's watch limit here. See http://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc for more info.

from react-isomorphic-starterkit.

jmfurlott avatar jmfurlott commented on September 23, 2024

The first solution didn't help @RickWong, however, the second solution returned me the following:

➜  react-isomorphic-starterkit git:(master) ✗ npm run watch

> [email protected] watch /home/jmfurlott/work/react-isomorphic-starterkit
> concurrent --kill-others 'npm run watch-client' 'npm run browser'

[0] 
[0] > [email protected] watch-client /home/jmfurlott/work/react-isomorphic-starterkit
[0] > webpack --verbose --colors --display-error-details --config webpack.client-watch.js && webpack-dev-server --config webpack.client-watch.js
[0] 
[0] 
[1] 
[1] > [email protected] browser /home/jmfurlott/work/react-isomorphic-starterkit
[1] > sleep 2; concurrent 'npm run start' 'npm run localhost'
[1] 
[1] 
[0] Hash: 67893fb848e71bde10d4
[0] Version: webpack 1.8.4
[0] Time: 1914ms
[0]     Asset     Size  Chunks             Chunk Names
[0] client.js  1.05 MB       0  [emitted]  main
[0]    [0] multi main 52 bytes {0} [built]
[0]     + 282 hidden modules
[0] 
[1] [1] 
[1] [1] > [email protected] localhost /home/jmfurlott/work/react-isomorphic-starterkit
[1] [1] > sleep 1; which open && open http://localhost:8000
[1] [1] 
[1] [1] 
[1] 
[1] [0] 
[1] [0] > [email protected] start /home/jmfurlott/work/react-isomorphic-starterkit
[1] [0] > NODE_PATH="./src" node ./babel.server
[1] [0] 
[1] [0] 
[1] 
[0] http://localhost:8080/webpack-dev-server/
[0] 
[0] webpack result is served from http://localhost:8080/dist/
[0] 
[0] content is served from ./static
[0] 
[1] [0] [piping] can't execute file: ./src/server.js
[1] [0] 
[1] 
[1] [0] [piping] error given was: /home/jmfurlott/work/react-isomorphic-starterkit/src/server.js:1
[1] [0] (function (exports, require, module, __filename, __dirname) { import {Server} 
[1] [0]                                                               ^^^^^^
[1] [0] SyntaxError: Unexpected reserved word
[1] [0]     at exports.runInThisContext (vm.js:73:16)
[1] [0]     at Module._compile (module.js:443:25)
[1] [0]     at Object.Module._extensions..js (module.js:478:10)
[1] [0]     at Module.load (module.js:355:32)
[1] [0]     at Module._load (module.js:310:12)
[1] [0]     at Function.module._load (/home/jmfurlott/work/react-isomorphic-starterkit/node_modules/piping/lib/launcher.js:32:16)
[1] [0]     at Module.require (module.js:365:17)
[1] [0]     at require (module.js:384:17)
[1] [0]     at Worker.<anonymous> (/home/jmfurlott/work/react-isomorphic-starterkit/node_modules/piping/lib/launcher.js:43:14)
[1] [0]     at Worker.emit (events.js:110:17)
[1] [0] 
[1] [0] [piping] further repeats of this error will be suppressed...
[1] [0] 
[1] 
[1] [1] /bin/open
[1] [1] 
[1] 
[1] [1] Couldn't get a file descriptor referring to the console
[1] [1] 
[1] 
[1] [1] 
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  Linux 3.19.0-13-generic
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  
[1] 
[1] [1] argv
[1] 
[1] [1]  "/home/jmfurlott/.nvm/versions/node/v0.12.2/bin/node" "/home/jmfurlott/.nvm/versions/node/v0.12.2/bin/npm" "run" "localhost"
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  
[1] 
[1] [1] node
[1] 
[1] [1]  v0.12.2
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  
[1] 
[1] [1] npm 
[1] 
[1] [1]  v2.7.4
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  
[1] 
[1] [1] code
[1] 
[1] [1]  ELIFECYCLE
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  [email protected] localhost: `sleep 1; which open && open http://localhost:8000`
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  Exit status 1
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  Failed at the [email protected] localhost script 'sleep 1; which open && open http://localhost:8000'.
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  This is most likely a problem with the react-isomorphic-starterkit package,
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  not with npm itself.
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  Tell the author that this fails on your system:
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]      sleep 1; which open && open http://localhost:8000
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  You can get their info via:
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]      npm owner ls react-isomorphic-starterkit
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  There is likely additional logging output above.
[1] [1] 
[1] 
[1] [1] 
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]  Please include the following file with any support request:
[1] [1] 
[1] 
[1] [1] npm
[1] 
[1] [1]  
[1] 
[1] [1] ERR!
[1] 
[1] [1]      /home/jmfurlott/work/react-isomorphic-starterkit/npm-debug.log
[1] [1] 
[1] 
[1] [1] npm run localhost exited with code 1
[1] 

from react-isomorphic-starterkit.

jmfurlott avatar jmfurlott commented on September 23, 2024

I would find hard to believe my system doesn't support this piping package. I am running Ubuntu. The project does, however, work on my OS X machine so it could most definitely be an issue with my machine

from react-isomorphic-starterkit.

Azaeres avatar Azaeres commented on September 23, 2024

I ran into this running on Linux inside a Docker container, and didn't find a workaround. piping depends on chokidar, which claims Linux support. My guess is that piping is using chokidar in such a way that breaks support for Linux. I unfortunately don't have much time to test.

from react-isomorphic-starterkit.

sergio-toro avatar sergio-toro commented on September 23, 2024

Same issue on Elementary OS (Ubuntu 14.04)

from react-isomorphic-starterkit.

lgt avatar lgt commented on September 23, 2024

I face the same on my OSX is there any working workaround?

from react-isomorphic-starterkit.

DrMabuse23 avatar DrMabuse23 commented on September 23, 2024

Hi i get an error after install and trying to run npm run watch

npm run watch

> [email protected] watch /Users/drmabuse/htdocs/stammbaum
> node ./node_modules/concurrently/src/main.js --kill-others "npm run watch-client" "npm run start"

[0] 
[0] > [email protected] watch-client /Users/drmabuse/htdocs/stammbaum
[0] > node ./node_modules/webpack/bin/webpack.js --verbose --colors --display-error-details --config webpack.client-watch.js && node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.client-watch.js
[0] 
[1] 
[1] > [email protected] start /Users/drmabuse/htdocs/stammbaum
[1] > NODE_PATH="./src" node ./babel.server
[1] 
[0] Hash: 48ddbb4b49e832176068
[0] Version: webpack 1.10.1
[0] Time: 2367ms
[0]    [0] multi main 52 bytes {0} [built] [1 error]
[0]     + 58 hidden modules
[0] 
[0] ERROR in ./src/client.js
[0] Module build failed: Error: /Users/drmabuse/htdocs/stammbaum/src/client.js: attachComments needs range information
[0]     at Object.attachComments (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/node_modules/estraverse/estraverse.js:741:19)
[0]     at Object.exports.default (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/helpers/parse.js:80:27)
[0]     at File.parse (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/file/index.js:549:40)
[0]     at File.parseCode (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/file/index.js:658:20)
[0]     at /Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/pipeline.js:167:12
[0]     at File.wrap (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/file/index.js:614:16)
[0]     at Pipeline.transform (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/pipeline.js:165:17)
[0]     at transpile (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-loader/index.js:12:22)
[0]     at Object.module.exports (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-loader/index.js:69:12)
[0]  @ multi main
[1] [piping] can't execute file: /Users/drmabuse/htdocs/stammbaum/babel.server.js
[1] [piping] error given was: Error: /Users/drmabuse/htdocs/stammbaum/src/server.js: attachComments needs range information
[1]     at Object.attachComments (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/node_modules/estraverse/estraverse.js:741:19)
[1]     at Object.exports.default (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/helpers/parse.js:80:27)
[1]     at File.parse (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/file/index.js:549:40)
[1]     at File.parseCode (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/file/index.js:658:20)
[1]     at /Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/pipeline.js:167:12
[1]     at File.wrap (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/file/index.js:614:16)
[1]     at Pipeline.transform (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/transformation/pipeline.js:165:17)
[1]     at Object.transformFileSync (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/api/node.js:133:37)
[1]     at compile (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/api/register/node.js:132:20)
[1]     at normalLoader (/Users/drmabuse/htdocs/stammbaum/node_modules/babel-core/lib/api/register/node.js:199:14)
[1] [piping] further repeats of this error will be suppressed...
[0] http://0.0.0.0:8080/
[0] webpack result is served from http://localhost:8080/dist/
[0] content is served from ./static

from react-isomorphic-starterkit.

RickWong avatar RickWong commented on September 23, 2024

Piping will be removed soon.

from react-isomorphic-starterkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.