Skip to content

Visual Studio 2017 - webpack.js exited with code 2. #707

Open
@WilbertE

Description

@WilbertE

Hi,

What I have done:
Reinstalled Visual Studio 2017
Reinstalled NodeJs
Downloaded aspnetcode-angular-universal
Opened it with Visual Studio
Added 'c:\program files\nodejs' in Visual Studio > Tools > Options >Projects and Solutions > Web Package Management > External Web Tools

Then I hit 'Run' and in the end Visual Studio comes up with:
"MSB3073 - The command 'node node_modules/webpack/bin/webpack.js' exited with code 2".

I have tried numerious things but I cannot get past this error. When I hit 'run' again. The project launces and works (ssr) but after a second or so an overlay pops up with some errors (see screenshot)

When I remove this overlay (by setting it to display:none in Chrome dev tools) the project itself (Angular app) works without problems.

How can I fix this error?

error

----------EDIT------------
If I just delete the file stated in the error (counter.component.spec.ts) it does works. Is there something wrong with this file?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions