'''
./node_modules/browserify-middleware/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:29
if (x.match(/^(?:..?\/|\/|([A-Za-z]:)?)/)) {
^
TypeError: undefined is not a function
'''
Note that there are no error when I don't specify an expose option.
'''
router.get('bundles/my_component.js', browserify (['path-to-my-component']))
'''
''' var browserify = require('browserify-middleware'); var reactify = require('reactify'); browserify.settings('transform', ['reactify']);
router.get('bundles/my_component.js', browserify([{'path-to-my-component': {expose: 'MyComponent'}}]) '''
yield the following error:
''' ./node_modules/browserify-middleware/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:29 if (x.match(/^(?:..?\/|\/|([A-Za-z]:)?)/)) { ^ TypeError: undefined is not a function '''
Note that there are no error when I don't specify an expose option. ''' router.get('bundles/my_component.js', browserify (['path-to-my-component'])) '''