Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 9e714b6

Browse files
MarkPieszakSteveSandersonMS
authored andcommitted
Bug(KnockoutSpa): Router TS issue
TS erroring out (unable to build) due to `crossroads.normalizeFn = crossroads.NORM_AS_OBJECT;` <-- left hand assignment ``` ERROR in ./ClientApp/router.ts (21,9): error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property. ```
1 parent d928ef4 commit 9e714b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/KnockoutSpa/ClientApp/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as ko from 'knockout';
2-
import * as crossroads from 'crossroads';
2+
var crossroads = require('crossroads');
33

44
// This module configures crossroads.js, a routing library. If you prefer, you
55
// can use any other routing library (or none at all) as Knockout is designed to

0 commit comments

Comments
 (0)