This project is read-only.


0.9.1 broken for module imports


Can somebody tell me why the following very simple code:
  declare module "foo"

  import x = module("foo");
comes back with an error "Unable to resolve module reference 'module'" for the 0.9.1 compiler? This is confirmed in the Playground.

In general, all my code breaks -- no imports of modules succeed.
Closed Nov 19, 2013 at 9:31 PM by RyanCavanaugh
Thanks for reporting this! The issue has been fixed and can be tried out in the upcoming 0.9.5 release. We also have a beta available ( if you'd like to try it out.


schungx wrote Aug 7, 2013 at 7:50 AM

Got it. It is now: import x = require("name"); instead of import x = module("name");.

This is a significant breaking change and should be mentioned on the release notes in bold red letters, saying "WARNING: LARK'S VOMIT".

rsuter wrote Aug 7, 2013 at 11:08 AM

@schungx: Thank you very much!

RyanCavanaugh wrote Aug 7, 2013 at 5:57 PM

We're adding a transitional flag to allow this