{"action":"created","issue":{"url":"https://api.github.com/repos/SheetJS/js-xlsx/issues/285","labels_url":"https://api.github.com/repos/SheetJS/js-xlsx/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/SheetJS/js-xlsx/issues/285/comments","events_url":"https://api.github.com/repos/SheetJS/js-xlsx/issues/285/events","html_url":"https://github.com/SheetJS/js-xlsx/issues/285","id":100259311,"number":285,"title":"Doesn't work with browserify or webpack.","user":{"login":"quadrupleslap","id":6666547,"avatar_url":"https://avatars.githubusercontent.com/u/6666547?v=3","gravatar_id":"","url":"https://api.github.com/users/quadrupleslap","html_url":"https://github.com/quadrupleslap","followers_url":"https://api.github.com/users/quadrupleslap/followers","following_url":"https://api.github.com/users/quadrupleslap/following{/other_user}","gists_url":"https://api.github.com/users/quadrupleslap/gists{/gist_id}","starred_url":"https://api.github.com/users/quadrupleslap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quadrupleslap/subscriptions","organizations_url":"https://api.github.com/users/quadrupleslap/orgs","repos_url":"https://api.github.com/users/quadrupleslap/repos","events_url":"https://api.github.com/users/quadrupleslap/events{/privacy}","received_events_url":"https://api.github.com/users/quadrupleslap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-11T08:41:42Z","updated_at":"2015-11-28T14:35:00Z","closed_at":null,"body":"In webpack I get this error:\r\n```sh\r\nERROR in ../~/xlsx/xlsx.js\r\nModule not found: Error: Cannot resolve module 'fs' in /Users/Ram/Desktop/bob/node_modules/xlsx\r\n @ ../~/xlsx/xlsx.js 32:3635-3648 33:3206-3224\r\n\r\nERROR in ../~/xlsx/ods.js\r\nModule not found: Error: Cannot resolve module 'fs' in /Users/Ram/Desktop/bob/node_modules/xlsx\r\n @ ../~/xlsx/ods.js 67:9-27\r\n\r\nERROR in ../~/xlsx/dist/cpexcel.js\r\nModule not found: Error: Cannot resolve 'file' or 'directory' ./cptable in /Users/Ram/Desktop/bob/node_modules/xlsx/dist\r\n @ ../~/xlsx/dist/cpexcel.js 1:165488-165513\r\n```"},"comment":{"url":"https://api.github.com/repos/SheetJS/js-xlsx/issues/comments/160305339","html_url":"https://github.com/SheetJS/js-xlsx/issues/285#issuecomment-160305339","issue_url":"https://api.github.com/repos/SheetJS/js-xlsx/issues/285","id":160305339,"user":{"login":"whytheday","id":4574065,"avatar_url":"https://avatars.githubusercontent.com/u/4574065?v=3","gravatar_id":"","url":"https://api.github.com/users/whytheday","html_url":"https://github.com/whytheday","followers_url":"https://api.github.com/users/whytheday/followers","following_url":"https://api.github.com/users/whytheday/following{/other_user}","gists_url":"https://api.github.com/users/whytheday/gists{/gist_id}","starred_url":"https://api.github.com/users/whytheday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whytheday/subscriptions","organizations_url":"https://api.github.com/users/whytheday/orgs","repos_url":"https://api.github.com/users/whytheday/repos","events_url":"https://api.github.com/users/whytheday/events{/privacy}","received_events_url":"https://api.github.com/users/whytheday/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T14:35:00Z","updated_at":"2015-11-28T14:35:00Z","body":"I was able to get it building by adding the following to my webpack config:\r\n```javascript\r\n    node: {\r\n            fs: 'empty'\r\n    },\r\n    externals: [\r\n        {\r\n            './cptable': 'var cptable'\r\n        }\r\n    ]\r\n```"}}