Replies: 3 comments
-
In my case, it was just a matter of installing |
Beta Was this translation helpful? Give feedback.
0 replies
-
"@tauri-apps/api": "^2.0.0-rc.0", tauri no longer exists in this version, in my case I needed the invoke and now it is in core |
Beta Was this translation helpful? Give feedback.
0 replies
-
import { invoke } from '@tauri-apps/api/core'; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question:
I just created a new Tauri app with
yarn
as my package manager, enablingTypescript
support, and now VSCode is showing various import errors likeCannot find module '@tauri-apps/api/tauri' or its corresponding type declarations
.How can I fix this?
Answer:
If you're not using Yarn classic, you may need to just run the following in the repository root (as was the case for me):
See https://yarnpkg.com/getting-started/editor-sdks for more details.
Didn't find anything specific when I was googling this, so adding this post in case it ends up helping someone else who runs into the same problem.
Beta Was this translation helpful? Give feedback.
All reactions