Webpack Uncaught TypeError: exec is not a function
tomesposito opened this issue · comments
Has anyone else run into this issue trying to use open with Webpack?
open.js:58 Uncaught TypeError: exec is not a functionopen @ open.js:58Profile._react2.default.createElement._react2.default.createElement._react2.default.createElement.onClick @ InfoBar.js:49ReactErrorUtils.invokeGuardedCallback @ ReactErrorUtils.js:71executeDispatch @ EventPluginUtils.js:79executeDispatchesInOrder @ EventPluginUtils.js:102executeDispatchesAndRelease @ EventPluginHub.js:43executeDispatchesAndReleaseTopLevel @ EventPluginHub.js:54forEachAccumulated @ forEachAccumulated.js:23EventPluginHub.processEventQueue @ EventPluginHub.js:259runEventQueueInBatch @ ReactEventEmitterMixin.js:18ReactEventEmitterMixin.handleTopLevel @ ReactEventEmitterMixin.js:34handleTopLevelWithoutPath @ ReactEventListener.js:93handleTopLevelImpl @ ReactEventListener.js:73Mixin.perform @ Transaction.js:136ReactDefaultBatchingStrategy.batchedUpdates @ ReactDefaultBatchingStrategy.js:62batchedUpdates @ ReactUpdates.js:94ReactEventListener.dispatchEvent @ ReactEventListener.js:204
Also:
ERROR in ./~/open/lib/open.js
Module not found: Error: Cannot resolve module 'child_process' in /node_modules/open/lib
@ ./~/open/lib/open.js 1:11-35
turns out webpack loads it to window.require('open')