-
Notifications
You must be signed in to change notification settings - Fork 152
require returns dcodeIO in a standalone coffeeify deployment #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like /* CommonJS */ if (typeof require === 'function' && typeof module === 'object' && module && module.id && typeof exports === 'object' && exports)
module['exports'] = (function() {
var Long; try { Long = require("long"); } catch (e) {}
return loadByteBuffer(Long);
})(); is not working properly in your environment. One of the conditions most likely evaluates to |
I added console.log messages but nothing gets logged. It looks like this code is not executing. Here is my environment with the included console.log messages for each condition:
bitshares-debug.js
|
Could be |
It may not be quick, but I will try it out. Thank you! |
It worked! Thank you. |
After deploying a coffee app as follows:
browserify --transform coffeeify -s myapp src/index.coffee --debug > myapp-debug.js
The require for nodejs (first) is normal, but the required used by the browser is different. This is my work-around to include bytebuffer in both cases:
The text was updated successfully, but these errors were encountered: