pux-starter-app
pux-starter-app copied to clipboard
'pulp browserify --optimise > index.js' couldn't find react-dom
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
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.
I also hit this when trying to work out how to deploy the starter app. Is there a recommended way to deploy this?