Reputation: 8337
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
Reputation: 221024
The new import syntax is
import app = require('durandal/app');
Upvotes: 4