pux-starter-app icon indicating copy to clipboard operation
pux-starter-app copied to clipboard

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

Open mchaver opened this issue 7 years ago • 2 comments

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

mchaver avatar Aug 01 '17 12:08 mchaver

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.

alexmingoia avatar Aug 17 '17 20:08 alexmingoia

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

khanage avatar Dec 02 '17 21:12 khanage