Skip to content

Chapter 2 Section 6 - Module Resolution #29

@RichLinnell

Description

@RichLinnell

When I tried to import my external module with the line
import greetings = require('Greetings')
it couldn't find the module.

I had to change the reference to the following to get it to work
import greetings = require('./Greetings');

also in the example you have the following which fails as it isn't exposed in the module
var XmasGreetings = greetings.XmasGreetings();

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions