angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Error: Module not found: Error: Can't resolve 'fs'

Open lughino opened this issue 9 years ago • 21 comments

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Angular CLI: 1.5.0-rc.6 Node: 6.11.0 OS: darwin x64 Angular: 5.0.0-rc.9 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, platform-server, router

@angular/cli: 1.5.0-rc.6 @angular-devkit/build-optimizer: 0.0.31 @angular-devkit/core: 0.0.20 @angular-devkit/schematics: 0.0.34 @ngtools/json-schema: 1.1.0 @ngtools/webpack: 1.8.0-rc.6 @schematics/angular: 0.0.49 typescript: 2.6.1 webpack: 3.8.1

Repro steps.

Put some node module inside one file ng test --code-coverage --watch=false

The log given by the failure.

Error: Module not found: Error: Can't resolve 'fs' in '/Users/luca/src/app/core/service/config'

Desired functionality.

Prior to update the new version of angular cli and angular 5 the error didn't happen. When I build or serve, no errors. Fix this functionality before release the final version.

lughino avatar Nov 01 '17 17:11 lughino

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.