This is my first post, so good luck :)
I want to use a hot towel (durandal) + typescript, I followed these streams: - 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 example does not start with this error:
"Server error in application" / ".
Resource is not found. "
At first I decided to just change my view models using typescript, and after this shell too, but in both situations I got this error:
this is my shell.ts code (which i used from this example):
/// <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 see what happens.
source share