{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2644","repository_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack","labels_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2644/labels{/name}","comments_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2644/comments","events_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2644/events","html_url":"https://github.com/angular-fullstack/generator-angular-fullstack/issues/2644","id":262569934,"number":2644,"title":"Adding new NPM Modules (Cannot resolve module 'fs') error","user":{"login":"xavidram","id":1348719,"avatar_url":"https://avatars3.githubusercontent.com/u/1348719?v=4","gravatar_id":"","url":"https://api.github.com/users/xavidram","html_url":"https://github.com/xavidram","followers_url":"https://api.github.com/users/xavidram/followers","following_url":"https://api.github.com/users/xavidram/following{/other_user}","gists_url":"https://api.github.com/users/xavidram/gists{/gist_id}","starred_url":"https://api.github.com/users/xavidram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavidram/subscriptions","organizations_url":"https://api.github.com/users/xavidram/orgs","repos_url":"https://api.github.com/users/xavidram/repos","events_url":"https://api.github.com/users/xavidram/events{/privacy}","received_events_url":"https://api.github.com/users/xavidram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-03T20:13:25Z","updated_at":"2017-10-03T20:13:25Z","closed_at":null,"author_association":"NONE","body":" - [ x] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.\r\n\r\nItem | Version\r\n----- | -----\r\ngenerator-angular-fullstack | 4.2.2\r\nNode | 6.11.3\r\nnpm | 5.4.1\r\nOperating System | OS X 10 \r\n\r\nItem | Answer\r\n----- | -----\r\nTranspiler | Babel \r\nMarkup | HTML \r\nCSS | SCSS \r\nRouter | ngRoute\r\nClient Tests | Jasmine \r\nDB | SQL\r\nAuth | Y \r\n\r\nNPM MODULE: bb-rest\r\n\r\nI have looked through many of the previous issues with the error 'Cannot resolve module 'fs'' and have done changes to the config variable in the webpack.make.js file from solutions such as these.\r\n\r\n1. [Here](https://github.com/josephsavona/valuable/issues/9)\r\n2. [This one as wel](http://jlongster.com/Backend-Apps-with-Webpack--Part-I)\r\n3. [Tried this as well](https://github.com/pugjs/pug-loader/issues/8#issuecomment-55568520)\r\n4. [Last Resort](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2605)\r\n\r\nWhen I attempt to inject the dependency in the app.js file, webpack upon compiling throws a fit. I've tried the approaches in the links provided above in order to resolve this with no luck. I even tried simply importing the required dependency into my controller, or a specific file where I need it, and webpack goes crazy. I set up a test project with just a simple node/express webapp and that works fine. I'm not too familiar with webpack and it's inner workings so I was wondering if anyone had any similar issues when trying to use third party npm modules in the stack.\r\n\r\nConsole Error Produced by Webpack upon compiling: https://pastebin.com/26RmwEUZ\r\n\r\nI already submitted an issue with [Stackoverflow](https://stackoverflow.com/questions/46552646/error-with-webpack-and-angular-fullstack-installing-3rd-party-npm-modules) but figured I should also submit one here in the event someone else has come across this. If I get a resolution over at StackOverflow I'll post the solution and close the issue and vice versa. "}}
{"actor":{"display_login":"xavidram"}}