Skip to content

Instantly share code, notes, and snippets.

@JohnWeisz
JohnWeisz / output.txt
Created April 27, 2018 10:04
When building AppImage for linux, getting "TypeError: Cannot match against undefined or null"
build --linux --x64
• electron-builder version=20.10.0
• loaded configuration file=package.json ("build" field)
• writing effective config file=dist\electron-builder-effective-config.yaml
• no native production dependencies
• packaging platform=linux arch=x64 electron=2.0.0-beta.7 appOutDir=dist\linux-unpacked
• scheduling remote build target=appImage arch=x64
• building target=zip arch=x64 file=dist\audionodes-0.2.0.zip
TypeError: Cannot match against 'undefined' or 'null'.
at Object.<anonymous> (D:\VSTS Build\externals\npm\node_modules\electron-builder\node_modules\electron-builder-lib\src\remoteBuilder\RemoteBuildManager.ts:31:5)
The system is: Windows - 10.0.15063 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
@JohnWeisz
JohnWeisz / assert.ts
Created January 29, 2017 11:06
TypeScript runtime checked type-assertion
export declare interface RuntimeAssert
{
any?: (value: any) => {
asNumber: () => number,
asArrayOfNumber: () => number[],
asString: () => string,
asArrayOfString: () => string[],
asBoolean: () => boolean,
asArrayOfBoolean: () => boolean[],
as: <T>(ctor: new (...args: any[]) => T) => T,