-
Notifications
You must be signed in to change notification settings - Fork 10
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
Meteor Support #1
Comments
Response from Meteor maintainer: meteor/meteor#6890 (comment)
I'm not sure what the best course of action is here. |
Well, that is the main point of this package to do that, because
I don't know how that would work. I think he never checked what However, he also had this comment:
So maybe changing package.json could work. Not sure what he means though to use only a string. Would you be able to play with that on your local installation? |
Also you probably will face the same issue with https://github.com/cryptocoinjs/secp256k1-node, because it uses the same |
I just meant that this code could dynamically decide which package to import, perhaps like so: var sha3 = typeof window === "object"
// When running in a browser environment, prefer browserify-sha3.
? require("browserify-sha3")
// Split the identifier string to avoid bundling sha3 for the browser.
: require("sha" + "3");
module.exports = sha3.SHA3Hash; |
thanks @benjamn - isn't the main purpose of the browser field in package.json to do that? |
@hitchcott should be fixed with release 0.2.0, please let me know if there are any issues |
@axic Tested and working! Thank you on behalf of the Meteor community. |
@hitchcott curious, have you seen any issues with secp256k1 or scrypt.js (well, updated the latter)? |
@axic actually we are having issues with secp256k1 in our meteor application... the weird thing is if we build our application with the --debug flag on then we don't see any problems after deployment. However if we build in production mode (without --debug) then we have issues/application hangs when we get to the secp256k1 functions... any ideas? |
same here |
Seems like Meteor 1.3 ES6 import is having issues with this package, and is affecting other packages depending on
keccakjs
.Reproduction:
client/main.js
(same outcome with
require
)Errors:
node console
browser console
Related:
Attempting to debug...
EDIT: This is probably a Meteor bug. Seems like it's not respecting the
browser
field inpackage.json
.'Fixes' the issue.
The text was updated successfully, but these errors were encountered: