{"action":"opened","issue":{"url":"https://api.github.com/repos/matiboy/angular2-prettyjson/issues/14","repository_url":"https://api.github.com/repos/matiboy/angular2-prettyjson","labels_url":"https://api.github.com/repos/matiboy/angular2-prettyjson/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/matiboy/angular2-prettyjson/issues/14/comments","events_url":"https://api.github.com/repos/matiboy/angular2-prettyjson/issues/14/events","html_url":"https://github.com/matiboy/angular2-prettyjson/issues/14","id":214901026,"number":14,"title":"Warning messages with webpack","user":{"login":"r105m","id":11159209,"avatar_url":"https://avatars2.githubusercontent.com/u/11159209?v=3","gravatar_id":"","url":"https://api.github.com/users/r105m","html_url":"https://github.com/r105m","followers_url":"https://api.github.com/users/r105m/followers","following_url":"https://api.github.com/users/r105m/following{/other_user}","gists_url":"https://api.github.com/users/r105m/gists{/gist_id}","starred_url":"https://api.github.com/users/r105m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r105m/subscriptions","organizations_url":"https://api.github.com/users/r105m/orgs","repos_url":"https://api.github.com/users/r105m/repos","events_url":"https://api.github.com/users/r105m/events{/privacy}","received_events_url":"https://api.github.com/users/r105m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-17T03:50:04Z","updated_at":"2017-03-17T03:50:04Z","closed_at":null,"body":"Hi, we are using your package with webpack. \r\nAnd while building, webpack **source-map-loader** is  generating a lot of warning messages:\r\n \r\n```\r\nWARNING in C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/index.js\r\nCannot find source file 'index.ts': Error: Can't resolve './index.ts' in 'C:\\Projects\\settingsone\\OneInc.SettingsOne.Web\\node_\r\nr2-prettyjson'\r\n @ ../vendor.ts 22:0-30\r\n @ multi ../vendor.ts\r\n\r\nWARNING in C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/src/prettyjson.module.js\r\nCannot find source file 'prettyjson.module.ts': Error: Can't resolve './prettyjson.module.ts' in 'C:\\Projects\\settingsone\\OneI\r\n.Web\\node_modules\\angular2-prettyjson\\src'\r\n @ C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/index.js 1:0-59\r\n @ ../vendor.ts\r\n @ multi ../vendor.ts\r\n\r\nWARNING in C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/src/json.pipe.js\r\nCannot find source file 'json.pipe.ts': Error: Can't resolve './json.pipe.ts' in 'C:\\Projects\\settingsone\\OneInc.SettingsOne.W\r\ns\\angular2-prettyjson\\src'\r\n @ C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/index.js 2:0-47\r\n @ ../vendor.ts\r\n @ multi ../vendor.ts\r\n\r\nWARNING in C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/src/prettyjson.pipe.js\r\nCannot find source file 'prettyjson.pipe.ts': Error: Can't resolve './prettyjson.pipe.ts' in 'C:\\Projects\\settingsone\\OneInc.S\r\n\\node_modules\\angular2-prettyjson\\src'\r\n @ C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/index.js 3:0-55\r\n @ ../vendor.ts\r\n @ multi ../vendor.ts\r\n\r\nWARNING in C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/src/prettyjson.component.js\r\nCannot find source file 'prettyjson.component.ts': Error: Can't resolve './prettyjson.component.ts' in 'C:\\Projects\\settingson\r\nngsOne.Web\\node_modules\\angular2-prettyjson\\src'\r\n @ C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/index.js 4:0-65\r\n @ ../vendor.ts\r\n @ multi ../vendor.ts\r\n\r\nWARNING in C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/src/safe.util.js\r\nCannot find source file 'safe.util.ts': Error: Can't resolve './safe.util.ts' in 'C:\\Projects\\settingsone\\OneInc.SettingsOne.W\r\ns\\angular2-prettyjson\\src'\r\n @ C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/src/json.pipe.js 2:0-41\r\n @ C:/Projects/settingsone/OneInc.SettingsOne.Web/~/angular2-prettyjson/index.js\r\n @ ../vendor.ts\r\n @ multi ../vendor.ts\r\n```\r\n\r\nThese messages can be supressed by adding this workaround:\r\n\r\n    module: {\r\n        rules: [{\r\n            test: /\\.js$/,\r\n            exclude: [path.resolve(__dirname, '../../node_modules/angular2-prettyjson') ,  // these\r\n            use: 'source-map-loader'\r\n        }]\r\n   }\r\n\r\nPlease, fix it"}}
{"actor":{"display_login":"r105m"}}