Skip to content

NPM packages which has type definition in package.json is not working #170

@Ciantic

Description

@Ciantic

I think one can reproduce this using Immutable js:

npm install immutable --save

The typescript definitions work immediately in VSCode because it has typescript defined in the package.json but ts-loader using webpack gives me error in webpack:

error TS2307: Cannot find module 'immutable'.

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