koding / kite.js

Kite client in JavaScript
kite.koding.com
MIT License
75 stars 16 forks source link

Error when trying to require kites in a webpack bundle #61

Open usirin opened 6 years ago

usirin commented 6 years ago
./~/kite.js/lib/kite/wrap.js
Module not found: Can't resolve 'readline' in '/dev/kite-examples/src/todo-mvc/node_modules/kite.js/lib/kite'
usirin commented 6 years ago

I think we can shim readline by exporting window.prompt from a module, and put it to the browser part of the package.json.

niftylettuce commented 6 years ago

see https://github.com/Asana/node-asana/issues/114#issuecomment-279506107