{"action":"created","issue":{"url":"https://api.github.com/repos/axic/keccakjs/issues/1","repository_url":"https://api.github.com/repos/axic/keccakjs","labels_url":"https://api.github.com/repos/axic/keccakjs/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/axic/keccakjs/issues/1/comments","events_url":"https://api.github.com/repos/axic/keccakjs/issues/1/events","html_url":"https://github.com/axic/keccakjs/issues/1","id":150669850,"number":1,"title":"Meteor Support","user":{"login":"hitchcott","id":1696942,"avatar_url":"https://avatars.githubusercontent.com/u/1696942?v=3","gravatar_id":"","url":"https://api.github.com/users/hitchcott","html_url":"https://github.com/hitchcott","followers_url":"https://api.github.com/users/hitchcott/followers","following_url":"https://api.github.com/users/hitchcott/following{/other_user}","gists_url":"https://api.github.com/users/hitchcott/gists{/gist_id}","starred_url":"https://api.github.com/users/hitchcott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitchcott/subscriptions","organizations_url":"https://api.github.com/users/hitchcott/orgs","repos_url":"https://api.github.com/users/hitchcott/repos","events_url":"https://api.github.com/users/hitchcott/events{/privacy}","received_events_url":"https://api.github.com/users/hitchcott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-24T14:58:39Z","updated_at":"2016-04-25T13:55:57Z","closed_at":null,"body":"Seems like Meteor 1.3 ES6 import is having issues with this package, and is affecting other packages depending on `keccakjs`.\r\n\r\nReproduction:\r\n```\r\nmeteor create keccak-test\r\ncd keccak-test\r\nmeteor npm install\r\nmeteor npm install --save keccakjs\r\n```\r\n`client/main.js`\r\n```\r\nimport keccakjs from 'keccakjs'\r\n```\r\n(same outcome with `require`)\r\n\r\n---\r\nErrors:\r\n*node console*\r\n```\r\nUnable to resolve some modules:\r\n\r\n  \"build/Release/sha3\" in /Users/chris/code/test/keccakjs-meteor-test/node_modules/keccakjs/node_modules/sha3/package.json (web.browser)\r\n\r\nIf you notice problems related to these missing modules, consider running:\r\n  meteor npm install --save build\r\n// running the above has no effect\r\n```\r\n*browser console*\r\n```\r\nUncaught Error: Cannot find module 'sha3'\r\nrequire @ install.js:78\r\nmeteorInstall.node_modules.keccakjs.index.js @ index.js:1\r\nfileEvaluate @ install.js:141\r\nrequire @ install.js:75\r\nmeteorInstall.client.main.js @ main.js:1\r\nfileEvaluate @ install.js:141\r\nrequire @ install.js:75\r\n(anonymous function) @ app.js?hash=269ed68…:47\r\n```\r\n---\r\nRelated: \r\n* https://github.com/ConsenSys/eth-lightwallet/issues/87\r\n* https://forums.meteor.com/t/meteor-1-3-browserify-potential-issue/20155\r\n\r\n---\r\n\r\nAttempting to debug...\r\n\r\nEDIT: This is *probably* a Meteor bug. Seems like it's not respecting the `browser` field in `package.json`.\r\n\r\n```\r\nmodule.exports = require('browserify-sha3').SHA3Hash\r\n```\r\n\r\n'Fixes' the issue."},"comment":{"url":"https://api.github.com/repos/axic/keccakjs/issues/comments/214338582","html_url":"https://github.com/axic/keccakjs/issues/1#issuecomment-214338582","issue_url":"https://api.github.com/repos/axic/keccakjs/issues/1","id":214338582,"user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T13:55:56Z","updated_at":"2016-04-25T13:55:56Z","body":"thanks @benjamn - isn't the main purpose of the *browser* field in package.json to do that?"}}