Closed 88kami88 closed 8 years ago
var client = require('react-engine').client;
Using browserify to bundle client side and run in the browser I get this error:
Cannot find module 'express/lib/view' from parent from https://github.com/paypal/react-engine/blob/9000adad4b7ea694b6aa6155fdef2cbe4f134a53/lib/expressView.js#L24
Cannot find module 'express/lib/view' from parent
Any ideas?
Think I solved it with browserify's require option: -r express/lib/view
-r express/lib/view
@ethersage you can import like below to avoid inclusion of unwanted files. var ReactEngineClient = require('react-engine/lib/client');
var ReactEngineClient = require('react-engine/lib/client');
var client = require('react-engine').client;
Using browserify to bundle client side and run in the browser I get this error:
Cannot find module 'express/lib/view' from parent
from https://github.com/paypal/react-engine/blob/9000adad4b7ea694b6aa6155fdef2cbe4f134a53/lib/expressView.js#L24Any ideas?