Giter Site home page Giter Site logo

Comments (8)

ChuTingzj avatar ChuTingzj commented on June 8, 2024 1
截屏2024-03-08 17 40 04

from tauri.

FabianLars avatar FabianLars commented on June 8, 2024 1

@8beeeaaat Your @tauri-apps/api package is outdated. If you update it to v2 beta it should work.

from tauri.

FabianLars avatar FabianLars commented on June 8, 2024 1

I still can't reproduce this. I even dug out my macos catalina VM to almost match OP's tauri info output but it just works.

Anyone still seeing this, please upload the app that has this issue to github, and describe the exact steps you took that lead to this error.

Also, even though it doesn't seem apply to OP's screenshot, Tauri's ipc only works in actual tauri windows, so if you open your frontend in your normal browser then this error is to be expected...

from tauri.

ChuTingzj avatar ChuTingzj commented on June 8, 2024 1

I still can't reproduce this. I even dug out my macos catalina VM to almost match OP's tauri info output but it just works.

Anyone still seeing this, please upload the app that has this issue to github, and describe the exact steps you took that lead to this error.

Also, even though it doesn't seem apply to OP's screenshot, Tauri's ipc only works in actual tauri windows, so if you open your frontend in your normal browser then this error is to be expected...

I have resolved my problem!

from tauri.

syirilrakhulh avatar syirilrakhulh commented on June 8, 2024

Any update for this problem?

from tauri.

ChuTingzj avatar ChuTingzj commented on June 8, 2024

I meet the same problem

from tauri.

FabianLars avatar FabianLars commented on June 8, 2024

Can you 2 also post the output of the tauri info command please?

from tauri.

8beeeaaat avatar 8beeeaaat commented on June 8, 2024

I am having the same problem.
Only __TAURI_INTERNALS__ is available in the main window and the @tauri-apps/api invoke() method is not available.

% bun run tauri info 
$ tauri info

[✔] Environment
    - OS: Mac OS 14.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 21.4.0
    - npm: 10.2.4
    - bun: 1.0.18

[-] Packages
    - tauri [RUST]: 2.0.0-beta.10
    - tauri-build [RUST]: 2.0.0-beta.8
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.1
    - @tauri-apps/api [NPM]: 1.5.3
    - @tauri-apps/cli [NPM]: 2.0.0-beta.8

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React (Next.js)
    - bundler: Vite

スクリーンショット 2024-03-09 13 00 19

from tauri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.