VSTS Publish Error -TS2339: Property 'onError' does not exist on type '{}'. #430

Closed
opened 2025-08-09 17:16:15 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @aherrick on 9/11/2017

With the Angular template I'm now receiving the following error when publishing to Azure via VSTS. This same build was working about 4-6 weeks ago. Nothing has changed on my end. Publishing via VS (Publish Profile) works fine.

I'm wondering if something in my template (webpack/certain package) needs to be upgraded to support VSTS? Not sure what else it could be unless something on VSTS changed.

2017-09-07T14:03:02.7388712Z       ERROR in [at-loader] ./ClientApp/boot-server.ts:23:18 
2017-09-07T14:03:02.7388712Z           TS2339: Property 'onError' does not exist on type '{}'.
2017-09-07T14:03:02.7428715Z d:\a\1\s\App.csproj(64,5): error MSB3073: The command "node node_modules/webpack/bin/webpack.js" exited with code 2.
2017-09-07T14:03:02.7858728Z ##[error]Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1
2017-09-07T14:03:02.7858728Z ##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\1\s\App.csproj

Below: package.json, webpack.config.js, webpack.config.vendor.js
config.zip

*Originally created by @aherrick on 9/11/2017* With the Angular template I'm now receiving the following error when publishing to Azure via VSTS. This same build was working about 4-6 weeks ago. Nothing has changed on my end. Publishing via VS (Publish Profile) works fine. I'm wondering if something in my template (webpack/certain package) needs to be upgraded to support VSTS? Not sure what else it could be unless something on VSTS changed. ``` 2017-09-07T14:03:02.7388712Z ERROR in [at-loader] ./ClientApp/boot-server.ts:23:18 2017-09-07T14:03:02.7388712Z TS2339: Property 'onError' does not exist on type '{}'. 2017-09-07T14:03:02.7428715Z d:\a\1\s\App.csproj(64,5): error MSB3073: The command "node node_modules/webpack/bin/webpack.js" exited with code 2. 2017-09-07T14:03:02.7858728Z ##[error]Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1 2017-09-07T14:03:02.7858728Z ##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\1\s\App.csproj ``` **Below: package.json, webpack.config.js, webpack.config.vendor.js** [config.zip](https://github.com/aspnet/JavaScriptServices/files/1292661/config.zip)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#430
No description provided.