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

[Bug report] #46

Closed
reiyanyan opened this issue May 9, 2023 · 1 comment
Closed

[Bug report] #46

reiyanyan opened this issue May 9, 2023 · 1 comment

Comments

@reiyanyan
Copy link

Description

Argument of type '{ markdown: string; }' is not assignable to parameter of type 'App & { install: (app: App, ...options: any[]) => any; } & Record<string, unknown>'.
Type '{ markdown: string; }' is missing the following properties from type 'App': version, config, use, mixin, and 11 more.

which text = ref("")

Reproduction

tsc noEmit & implicitAny

Used Package Manager

npm

System Info

System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1
    Memory: 95.61 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
  Browsers:
    Chrome: 112.0.5615.137
    Safari: 15.6.1
  npmPackages:
    vue: ^3.0.0 => 3.2.47 
    vue-showdown: ^4.0.0 => 4.0.0
@reiyanyan
Copy link
Author

Solved
my fault

wrong import:
import VueShowdown from "vue-showdown"

correct import:
import { VueShowdown } from "vue-showdown"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant