mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
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. ```
This commit is contained in:
committed by
SteveSandersonMS
parent
d928ef4f12
commit
9e714b61fe
@@ -1,5 +1,5 @@
|
|||||||
import * as ko from 'knockout';
|
import * as ko from 'knockout';
|
||||||
import * as crossroads from 'crossroads';
|
var crossroads = require('crossroads');
|
||||||
|
|
||||||
// This module configures crossroads.js, a routing library. If you prefer, you
|
// This module configures crossroads.js, a routing library. If you prefer, you
|
||||||
// can use any other routing library (or none at all) as Knockout is designed to
|
// can use any other routing library (or none at all) as Knockout is designed to
|
||||||
|
|||||||
Reference in New Issue
Block a user