{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/1446","repository_url":"https://api.github.com/repos/tgriesser/knex","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/1446/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/1446/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/1446/events","html_url":"https://github.com/tgriesser/knex/issues/1446","id":156801065,"number":1446,"title":"Fail to package with Webpack / Browserify","user":{"login":"Titozzz","id":6181446,"avatar_url":"https://avatars.githubusercontent.com/u/6181446?v=3","gravatar_id":"","url":"https://api.github.com/users/Titozzz","html_url":"https://github.com/Titozzz","followers_url":"https://api.github.com/users/Titozzz/followers","following_url":"https://api.github.com/users/Titozzz/following{/other_user}","gists_url":"https://api.github.com/users/Titozzz/gists{/gist_id}","starred_url":"https://api.github.com/users/Titozzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Titozzz/subscriptions","organizations_url":"https://api.github.com/users/Titozzz/orgs","repos_url":"https://api.github.com/users/Titozzz/repos","events_url":"https://api.github.com/users/Titozzz/events{/privacy}","received_events_url":"https://api.github.com/users/Titozzz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-05-25T16:59:56Z","updated_at":"2016-12-22T10:05:09Z","closed_at":"2016-05-31T20:34:50Z","body":"Hi guys,\n\nWhen I try to bundle knex & bookshelf with webpack/browserify, I have theses kinds of error : \nCannot find module 'sqlite3'.\nBut i'm using postgresql.\n\nI had tons of differents error but they were located most of the time in the dialects folder.\nI don't need webpack or browserify to optimize the code, I'd just love it to ignore my node_modules folder and bundle it without knowing what's inside.\n\nI can't ignore node_module because I need it in the package since I don't control the environment where my code is running.\n\nAny ideas ?\n"},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/268765006","html_url":"https://github.com/tgriesser/knex/issues/1446#issuecomment-268765006","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/1446","id":268765006,"user":{"login":"erikfrisk","id":820221,"avatar_url":"https://avatars.githubusercontent.com/u/820221?v=3","gravatar_id":"","url":"https://api.github.com/users/erikfrisk","html_url":"https://github.com/erikfrisk","followers_url":"https://api.github.com/users/erikfrisk/followers","following_url":"https://api.github.com/users/erikfrisk/following{/other_user}","gists_url":"https://api.github.com/users/erikfrisk/gists{/gist_id}","starred_url":"https://api.github.com/users/erikfrisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikfrisk/subscriptions","organizations_url":"https://api.github.com/users/erikfrisk/orgs","repos_url":"https://api.github.com/users/erikfrisk/repos","events_url":"https://api.github.com/users/erikfrisk/events{/privacy}","received_events_url":"https://api.github.com/users/erikfrisk/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T10:05:09Z","updated_at":"2016-12-22T10:05:09Z","body":"@hassankhan Have you tried this...\r\n\r\n```\r\nnew webpack.NormalModuleReplacementPlugin(/\\.\\.\\/migrate/, '../util/noop.js'),\r\nnew webpack.NormalModuleReplacementPlugin(/\\.\\.\\/seed/, '../util/noop.js'),\r\n```\r\n\r\n... instead of this...\r\n\r\n```\r\nnew webpack.NormalModuleReplacementPlugin(/\\.\\.\\/migrate/, path.join(PATHS.util, 'noop.js')),\r\nnew webpack.NormalModuleReplacementPlugin(/\\.\\.\\/seed/, path.join(PATHS.util, 'noop.js')),\r\n```\r\n\r\n...?\r\n\r\nThe `NormalModuleReplacementPlugin` lines I had in my config make it so that knex's own `noop.js` is substituted in. I didn't have to create my own `noop.js`. If that doesn't work I'm not sure what's causing your error. "}}
{"actor":{"display_login":"erikfrisk"}}