fentas / sails-react

Integration of fb react into sailsjs
MIT License
17 stars 3 forks source link

Unhandled stream error in pipe, Sails 0.12.11 #2

Open egeshi opened 7 years ago

egeshi commented 7 years ago
$ node -v
v6.2.2

Enabled sails-react in http.js with customMiddleware property as follows:

middleware: {

    order: [
      ...
      '$custom',
      'router',
      'www',
      'favicon',
      '404',
      '500',
    ],

  ...

  customMiddleware: function (app) {
    app.use(require('../node_modules/sails-react').middleware(app));
  }

$ sails lift ends up with error

Requested ::  GET /

stream.js:74
      throw er; // Unhandled stream error in pipe.
      ^
SyntaxError: Unexpected token

How can I help more to resolve this?

arrowfunxtion commented 7 years ago

Where is the owner of the project?

fentas commented 7 years ago

Sorry for the massive response delay. :skull: I am currently drowning in work. I'll do my best to look into it. Thanks.