Alwyn
Alwyn

Reputation: 8337

Durandal with latest TypeScript

At some point, this, used to work:

import app = module('durandal/app');

However since the new import syntax is:

import app = durandal/app

The above failed miserably to compile. I tried the syntax with a more normal looking namespace convention eg. "Durandal.App" (w/o the quotes) and it'd work. So it seems the slash is throwing the compiler parser off.

Any work around?

Upvotes: 1

Views: 255

Answers (1)

Ryan Cavanaugh
Ryan Cavanaugh

Reputation: 221024

The new import syntax is

import app = require('durandal/app');

Upvotes: 4

Related Questions