browserify / wzrd.in

browserify as a service.
http://wzrd.in
MIT License
638 stars 96 forks source link

Flagrant System Error when importing enzyme with react-dom #153

Open ptim opened 7 years ago

ptim commented 7 years ago

Hi, thanks for the awesome tools!

I'm trying to get a sketch running at esnextbin, and am getting a bundling error when I try to import enzyme. I understand that this is likely an issue with enzyme, and I'll go an have a look in their issues, too...

The issue is visible in the following gist if you un-comment the import {shallow} from 'enzyme'; and the last it() test then click 'Execute':

Fingers crossed, TIA, ptim

The console then produces:

---FLAGRANT SYSTEM ERROR---

--- error #0: ---

(logs uuid: 0ee0b440-c1fe-11e6-95c3-57598f133f70 )

Error: "browserify exited with code 1"

code: 1
stderr: Error: Cannot find module 'react-dom' from '/tmp/enzyme1161114-29462-195j7a7/node_modules/enzyme/build'
    at /home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
    at process (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
    at ondir (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
    at load (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
    at onex (/home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
    at /home/admin/browserify-cdn/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
    at FSReqWrap.oncomplete (fs.js:82:15)

dirPath: /tmp/enzyme1161114-29462-195j7a7

------

This is probably an issue with the package, and not browserify-cdn itself.
If you feel differently, feel free to file a bug report at:

    https://github.com/jfhbrook/browserify-cdn/issues

Include the ENTIRETY of the contents of this message, and the maintainer(s)
can try to help you out.

Have a nice day!
ptim commented 7 years ago

logged an issue over at esnextbin: https://github.com/voronianski/esnextbin/issues/75