Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tauri bundle.ts is missing the clipboard #2243

Closed
stefnotch opened this issue Jul 19, 2021 · 0 comments
Closed

Tauri bundle.ts is missing the clipboard #2243

stefnotch opened this issue Jul 19, 2021 · 0 comments
Labels
scope: api.js The @tauri-apps/api npm package type: bug

Comments

@stefnotch
Copy link

Describe the bug

import { clipboard } from "@tauri-apps/api"; throws an error

Module '"@tauri-apps/api"' has no exported member 'clipboard

Upon investigating, it seems like the bundle does not export the clipboard
https://github.com/tauri-apps/tauri/blob/dev/tooling/api/src/bundle.ts

To Reproduce

  1. import { clipboard } from "@tauri-apps/api";

Expected behavior

I expected to be able to import the clipboard

Platform and Versions (required):

Operating System - Windows, version 10.0.19043 X64
Webview2 - 91.0.864.70

Node.js environment
  Node.js - 16.5.0
  @tauri-apps/cli - 1.0.0-beta.6
  @tauri-apps/api - 1.0.0-beta.5

Global packages
  npm - 7.11.2
  yarn - Not installed

Rust environment      
  rustc - 1.53.0
  cargo - 1.53.0

App directory structure
/.git
/.github
/dist
/node_modules
/public
/src
/src-tauri

App
  tauri.rs - 1.0.0-beta.5
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../dist
  devPath - http://localhost:8080/
  framework - Vue.js
@lemarier lemarier added the scope: api.js The @tauri-apps/api npm package label Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: api.js The @tauri-apps/api npm package type: bug
Projects
None yet
Development

No branches or pull requests

2 participants