Skip to content

Angular6 upgrade: Module not found issue with typescript.js #11620

Closed
@pharindoko

Description

@pharindoko

Bug Report or Feature Request (mark with an x)

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

Command (mark with an x)

- [x ] serve

Versions

v8.11.3 Same error with solution on Win 10 , Ubuntu 16.04

Repro steps

ng serve

The log given by the failure

Hash: 1d5efd42cf718a0d5c35
[1] Time: 22911ms
[1] chunk {main} main.js, main.js.map (main) 241 kB [initial] [rendered]
[1] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 677 kB [initial] [rendered]
[1] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
[1] chunk {scripts} scripts.js, scripts.js.map (scripts) 940 kB [rendered]
[1] chunk {styles} styles.js, styles.js.map (styles) 199 kB [initial] [rendered]
[1] chunk {vendor} vendor.js, vendor.js.map (vendor) 12.7 MB [initial] [rendered]
[1]
[1] WARNING in ./node_modules/source-map-support/source-map-support.js
[1] Module not found: Error: Can't resolve 'fs' in 'D:\tmp\ngDynamicDashboardDemo\node_modules\source-map-support'
[1]
[1] WARNING in ./node_modules/source-map-support/source-map-support.js
[1] Module not found: Error: Can't resolve 'module' in 'D:\tmp\ngDynamicDashboardDemo\node_modules\source-map-support'
[1]
[1] ERROR in ./node_modules/typescript/lib/typescript.js
[1] Module not found: Error: Can't resolve 'crypto' in 'D:\tmp\ngDynamicDashboardDemo\node_modules\typescript\lib'

Desired functionality

Should serve the cli solution without an error.
This happens after upgrade to Angular 6.0.9 from 5.2.x

Mention any other details that might be useful

This happens after upgrade from Angular 5.2.x to Angular 6.0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions