alexmingoia / pux-starter-app

Starter Pux app w/ hot-reloading and isomorphic routing and rendering
https://www.purescript-pux.org
BSD 3-Clause "New" or "Revised" License
101 stars 39 forks source link

'pulp browserify --optimise > index.js' couldn't find react-dom #36

Open mchaver opened 7 years ago

mchaver commented 7 years ago

I suppose this is because it is using preact? Is there a work around?

* Browserifying project in /Users/mchaver/documents/pux-starter-app
* Building project in /Users/mchaver/documents/pux-starter-app
* Build successful.
* Browserifying...
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Cannot find module 'react-dom' from
alexmingoia commented 7 years ago

I'm pretty sure this is because you don't have react-dom installed. If you don't want to use preact/preact-compat then you need to have react/react-dom installed.

khanage commented 6 years ago

I also hit this when trying to work out how to deploy the starter app. Is there a recommended way to deploy this?