Skip to content

TypeScript/npm import problem #8

Closed
@panuhorsmalahti

Description

@panuhorsmalahti

The readme suggest this:

import Immutable = require('./node_modules/immutable/dist/Immutable');

However, npm doesn't guarantee that the module is at that location (as it doesn't make any guarantees to the relative location of the dependency).

The correct syntax would be

import Immutable = require('immutable');

This assumes that the compiler is provided with the ambient external declaration file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions