banderson / generator-flux-react

A yeoman generator for app based on Facebook's Flux/React architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After running server for 15 mins error occurs in auto reload processing.

bmcniel opened this issue · comments

Browserify Error { [Error: Cannot find module 'react-dom' from '/Users/bsiemon/src/station/node_modules/react-overlays/lib/utils']

I then run npm install react-dom to fix but then the browserify translation appears to stop working with:

[20:06:53] Browserify Error { [SyntaxError: /Users/bsiemon/src/old-station/src/js/index.jsx: Unexpected token (4:13) while parsing file: /Users/bsiemon/src/old-station/src/js/index.jsx]
  pos: 99,
  loc: Position { line: 4, column: 13 },
  _babel: true,
  codeFrame: '\u001b[0m  2 | \u001b[36mimport\u001b[39m AppContainer from \u001b[31m\'./components/AppContainer.jsx\'\u001b[39m\u001b[1m;\u001b[22m\n  3 | \n> 4 | React\u001b[1m.\u001b[22mrender\u001b[34m\u001b[1m(\u001b[22m\u001b[39m\u001b[1m<\u001b[22mAppContainer \u001b[1m/\u001b[22m\u001b[1m>\u001b[22m\u001b[1m,\u001b[22m document\u001b[1m.\u001b[22mgetElementById\u001b[34m\u001b[1m(\u001b[22m\u001b[39m\u001b[31m\'main\'\u001b[39m\u001b[34m\u001b[1m)\u001b[22m\u001b[39m\u001b[34m\u001b[1m)\u001b[22m\u001b[39m\u001b[1m;\u001b[22m\n    |              ^\n  5 | \u001b[0m',
  filename: '/Users/bsiemon/src/old-station/src/js/index.jsx',
  stream: 

The index.jsx is the vanilla file included with the todo app.