Skip to content

Compile error in proxy.ts - error TS2304: Cannot find name 'Clipboard'.` #60

@mikes-gh

Description

@mikes-gh
  • VSCode Version:1.7.1
  • OS Version:Windows 7 sp1

Steps to Reproduce:

  1. Clone repo
  2. npm install (npm version 3.10.8)
  3. F5 to compile (tsc 1.0.3.0)

gives
src/browser/proxy.ts(33,25): error TS2304: Cannot find name 'Clipboard'.

It all runs as normal so I guess its just a typing issue.

looking at the npm install tree it seems the type definitions for clipboard are in
.\node_modules\@types\clipboard\index.d.ts

If I add

import * as Clipboard from 'clipboard';

at the top of proxy.ts

compile succeeds.

I am a newbie to typescript so I may be missing something.

If this is indeed a fix I can create a PR.
Let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions