Replies: 2 comments 4 replies
-
tauri可以注入js到webview吗?是否可以做个示例 |
Beta Was this translation helpful? Give feedback.
4 replies
-
调用服务器api接口应该放在前端做还在通过tauricore来调用呢 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tauri
tauri build error
Cargo.toml
中的tauri
,tauri-build
版本需要与package.json
中的@tauri-apps/cli
,@tauri-apps/api
版本保持一致。error: failed to run custom build command for
webview2-com-sys v0.18.0
请按照 Tauri 提供的 Windows 安装指南进行操作。如果仍无法解决,请查看相关 issues:
Vite
[vite] warning: Top-level "this" will be replaced with undefined since this file is an ECMAScript module
这是因为
plugin-react
使用@babel/plugin-transform-react-jsx
来转换 JSX。 可以设置 esbuild.logOverride 以忽略警告。Rust
error: linking with
cc
failed: exit status: 1macOS 系统升级导致此错误,可以通过
xcode-select --install
来解决。xcode-select: note: install requested for command line developer tools
更新 Xcode 命令行工具最简单方法是删除旧版本,然后安装新版本。
Xcode Error When Launching Terminal
每次升级后 XCode 都会发生这种情况:
解决办法,重装 Xcode 命令行工具:
VS Code
插件冲突
同时安装 1,2 两个插件则会报以下错误,关闭 1 插件即可解决。
Couldn’t start client Rust Language Server
vscode 无法找到
rustup
可执行文件的路径,可以通过手动配置settings.json
来解决。相关阅读
Beta Was this translation helpful? Give feedback.
All reactions