Skip to content

Problem importing big.js in NodeJS - "Cannot find external module" #3548

@aelr

Description

@aelr

I've installed big.js via npm and the d.ts file viatsd. I am attempting to import it in NodeJS via:
import Big = require('big.js'), as I have done with other modules (e.g., import _ = require('lodash')).

However, I receive the following error upon compilation:
error TS2307: Cannot find external module 'big.js'

In case it matters, I'm using TypeScript 1.3. Also, I am using the typings reference in the file:
/// <reference path="../typings/tsd.d.ts" />

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