Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9e714b6

Browse filesBrowse 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
Copy full SHA for 9e714b6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎templates/KnockoutSpa/ClientApp/router.ts‎

Copy file name to clipboardExpand all lines: templates/KnockoutSpa/ClientApp/router.ts
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.