this is my first post, so wish me luck :)
I want to use hot towel(durandal) + typescript , i followed these threads: - how-can-i-use-a-class-for-my-shell-viewmodel-in-durandal - how-to-use-fancybox-in-combination-with-durandal-en-typescript - incorrect-this-in-select
and also tried DurandalTypescriptExample sample
this sample does not run with this error:
"Server Error in '/' Application.
The resource cannot be found. "
at first i decided just to change my viewmodels with typescript, and after that shell either, but in both situation i got this error:
this is my shell.ts code (which i used from this sample) :
/// <reference path="../durandal/durandal.d.ts" />
import _router = module('durandal/plugins/router');
import app = module('durandal/app');
export var router = _router;
export function search() {
app.showMessage('Search not yet implemented...');
}
export function activate() {
return router.activate('welcome');
}
and i got this error:
- JavaScript runtime error: 'exports' is undefined
any idea?
and if its possible, workable solutions are appreciated.
thanx guys let's see what will happen.