{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/8357","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/8357/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/8357/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/8357/events","html_url":"https://github.com/angular/angular-cli/issues/8357","id":271273621,"node_id":"MDU6SXNzdWUyNzEyNzM2MjE=","number":8357,"title":"ng test fails Module not found: Error: Can't resolve 'fs'","user":{"login":"TKul6","id":7823319,"node_id":"MDQ6VXNlcjc4MjMzMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7823319?v=4","gravatar_id":"","url":"https://api.github.com/users/TKul6","html_url":"https://github.com/TKul6","followers_url":"https://api.github.com/users/TKul6/followers","following_url":"https://api.github.com/users/TKul6/following{/other_user}","gists_url":"https://api.github.com/users/TKul6/gists{/gist_id}","starred_url":"https://api.github.com/users/TKul6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKul6/subscriptions","organizations_url":"https://api.github.com/users/TKul6/orgs","repos_url":"https://api.github.com/users/TKul6/repos","events_url":"https://api.github.com/users/TKul6/events{/privacy}","received_events_url":"https://api.github.com/users/TKul6/received_events","type":"User","site_admin":false},"labels":[{"id":372202241,"node_id":"MDU6TGFiZWwzNzIyMDIyNDE=","url":"https://api.github.com/repos/angular/angular-cli/labels/priority:%201%20(urgent)","name":"priority: 1 (urgent)","color":"0052cc","default":false},{"id":531675405,"node_id":"MDU6TGFiZWw1MzE2NzU0MDU=","url":"https://api.github.com/repos/angular/angular-cli/labels/severity3:%20broken","name":"severity3: broken","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2017-11-05T12:41:57Z","updated_at":"2018-08-02T10:05:30Z","closed_at":null,"author_association":"NONE","body":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [X] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\nAngular CLI: 1.5.0\r\nNode: 9.0.0\r\nOS: win32 x64\r\nAngular: 5.0.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\n@angular/cli: 1.5.0\r\n@angular-devkit/build-optimizer: 0.0.32\r\n@angular-devkit/core: 0.0.20\r\n@angular-devkit/schematics: 0.0.35\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.8.0\r\n@schematics/angular: 0.1.0\r\ntypescript: 2.4.2\r\nwebpack: 3.8.1\r\n\r\n### Repro steps.\r\nng test\r\n\r\n\r\nOmits the following error:\r\n\r\nERROR in ./node_modules/fs.realpath/index.js\r\nModule not found: Error: Can't resolve 'fs' in XXXX\\node_modules\\fs.realpath'\r\n @ ./node_modules/fs.realpath/index.js 8:9-22\r\n @ ./node_modules/jasmine/node_modules/glob/sync.js\r\n @ ./node_modules/jasmine/node_modules/glob/glob.js\r\n @ ./node_modules/jasmine/lib/jasmine.js\r\n @ ./src/client/app/account/login/login.component.spec.ts\r\n @ ./src/client \\.spec\\.ts$\r\n @ ./src/client/test.ts\r\n\r\nERROR in ./node_modules/fs.realpath/old.js\r\nModule not found: Error: Can't resolve 'fs' in 'XXXX\\node_modules\\fs.realpath'\r\n @ ./node_modules/fs.realpath/old.js 24:9-22\r\n @ ./node_modules/fs.realpath/index.js\r\n @ ./node_modules/jasmine/node_modules/glob/sync.js\r\n @ ./node_modules/jasmine/node_modules/glob/glob.js\r\n @ ./node_modules/jasmine/lib/jasmine.js\r\n @ ./src/client/app/account/login/login.component.spec.ts\r\n @ ./src/client \\.spec\\.ts$\r\n @ ./src/client/test.ts\r\n\r\nERROR in ./node_modules/jasmine/node_modules/glob/sync.js\r\nModule not found: Error: Can't resolve 'fs' in 'XXXX\\node_modules\\jasmine\\node_modules\\glob'\r\n @ ./node_modules/jasmine/node_modules/glob/sync.js 4:9-22\r\n @ ./node_modules/jasmine/node_modules/glob/glob.js\r\n @ ./node_modules/jasmine/lib/jasmine.js\r\n @ ./src/client/app/account/login/login.component.spec.ts\r\n @ ./src/client \\.spec\\.ts$\r\n @ ./src/client/test.ts\r\n\r\nERROR in ./node_modules/jasmine/node_modules/glob/glob.js\r\nModule not found: Error: Can't resolve 'fs' inXXXX\\node_modules\\jasmine\\node_modules\\glob'\r\n @ ./node_modules/jasmine/node_modules/glob/glob.js 43:9-22\r\n @ ./node_modules/jasmine/lib/jasmine.js\r\n @ ./src/client/app/account/login/login.component.spec.ts\r\n @ ./src/client \\.spec\\.ts$\r\n @ ./src/client/test.ts\r\n\r\nERROR in ./node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core.js\r\nModule not found: Error: Can't resolve 'fs' in 'XXXX\\node_modules\\jasmine\\node_modules\\jasmine-core\\lib'\r\n @ ./node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core.js 5:9-22\r\n @ ./node_modules/jasmine/lib/jasmine.js\r\n @ ./src/client/app/account/login/login.component.spec.ts\r\n @ ./src/client \\.spec\\.ts$\r\n @ ./src/client/test.ts\r\n\r\n\r\n\r\n### Desired functionality.\r\nRun the tests\r\n\r\n### Mention any other details that might be useful.\r\nIt happened when I upgraded from cli 1.47 to 1.5.0.\r\n\r\nJasmine packages:\r\n\"jasmine\": \"^2.8.0\",\r\n\"jasmine-core\": \"~2.5.2\",\r\n\"jasmine-spec-reporter\": \"~3.2.0\"\r\n\r\nKarma packages:\r\n\r\n \"karma\": \"~1.5.0\",\r\n    \"karma-chrome-launcher\": \"~2.0.0\",\r\n    \"karma-cli\": \"~1.0.1\",\r\n    \"karma-coverage-istanbul-reporter\": \"^1.0.0\",\r\n    \"karma-jasmine\": \"~1.1.0\",\r\n    \"karma-jasmine-html-reporter\": \"^0.2.2\",\r\n    \"karma-junit-reporter\": \"^1.2.0\",\r\n    \"karma-mocha\": \"^1.3.0\",\r\n    \"karma-phantomjs-launcher\": \"^1.0.4\",\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/409875933","html_url":"https://github.com/angular/angular-cli/issues/8357#issuecomment-409875933","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/8357","id":409875933,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTg3NTkzMw==","user":{"login":"splincode","id":12021443,"node_id":"MDQ6VXNlcjEyMDIxNDQz","avatar_url":"https://avatars3.githubusercontent.com/u/12021443?v=4","gravatar_id":"","url":"https://api.github.com/users/splincode","html_url":"https://github.com/splincode","followers_url":"https://api.github.com/users/splincode/followers","following_url":"https://api.github.com/users/splincode/following{/other_user}","gists_url":"https://api.github.com/users/splincode/gists{/gist_id}","starred_url":"https://api.github.com/users/splincode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splincode/subscriptions","organizations_url":"https://api.github.com/users/splincode/orgs","repos_url":"https://api.github.com/users/splincode/repos","events_url":"https://api.github.com/users/splincode/events{/privacy}","received_events_url":"https://api.github.com/users/splincode/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T10:05:30Z","updated_at":"2018-08-02T10:05:30Z","author_association":"NONE","body":"https://github.com/amwmedia/node-plop/issues/81"}}
{"actor":{"display_login":"splincode"}}