Skip to content

Does not work with TypeScript ES modules #40

Open

Description

@hatashiro
// in TypeScript
import * as keycode from 'keycode';

The code above results in error TS2307: Cannot find module 'keycode'.

The tsc version is v2.4.1.

Activity

  1. nkint commented on Dec 6, 2017

    @nkint

    here too with ts 2.6.2, npm 5.3.0

  2. wachunga commented on Mar 13, 2018

    @wachunga

    Works fine for me, typescript 2.6.1.

    import keycode from 'keycode';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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