On `macOS`, when I run the project and paste my PAT, I get `window.__TAURI_INTERNALS__ is undefined` error
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- angular, tauri, typescript
调研方向
先运行 npm start,检查 app.component.ts 中浏览器控制台的错误,然后跟踪调用进入 tauri.service.ts 的过程,尤其是 getRefreshInterval、getAuthStatus 和 getToken。输入 GitHub PAT 后能够在没有 window.__TAURI_INTERNALS__ 错误的情况下进入下一个屏幕时,修复才算完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
As a developer,
When I run the npm start command and paste the GitHub PAT in the web browser window
I get a window.__TAURI_INTERNALS__ is undefinederror and cannot be authenticated
To Reproduce
Steps to reproduce the behavior:
- Clone the project
- Run
npm start - Click on button to create on GitHub PAT
- Copy/paste to the field the PAT
Expected behavior
I should go to the next screen of the app when the token is validated
Screenshots
Additional context
- OS:
macOS Tahoe 26.3.1 - Web browser for PAT:
Firefox 150.0 (aarch64) - Rust version:
rustc 1.95.0 (59807616e 2026-04-14) - Node version:
v24.9.0 - NPM version:
11.6.0 - Project version:
[email protected]
Browser console logs
Failed to load refresh interval from config, using default: TypeError: can't access property "invoke", window.__TAURI_INTERNALS__ is undefined
invoke core.js:202
Angular 3
invoke core.js:201
getRefreshInterval tauri.service.ts:149
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
getRefreshInterval main.js:241
loadRefreshIntervalFromConfig app.component.ts:77
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
loadRefreshIntervalFromConfig main.js:3432
ngOnInit app.component.ts:93
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
ngOnInit main.js:3451
Angular 45
<anonymous> main.ts:23
[app.component.ts:79:15](http://localhost:4200/src/app/app.component.ts)
Error checking auth status: TypeError: can't access property "invoke", window.__TAURI_INTERNALS__ is undefined
invoke core.js:202
Angular 3
invoke core.js:201
getAuthStatus tauri.service.ts:59
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
getAuthStatus main.js:141
checkAuthStatus app.component.ts:102
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
checkAuthStatus main.js:3458
ngOnInit app.component.ts:94
fulfilled main.js:10
Angular 20
<anonymous> main.ts:23
[app.component.ts:119:15](http://localhost:4200/src/app/app.component.ts)
Error getting token: TypeError: can't access property "invoke", window.__TAURI_INTERNALS__ is undefined
invoke core.js:202
Angular 3
invoke core.js:201
getToken tauri.service.ts:63
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
getToken main.js:146
checkAuthStatus app.component.ts:122
rejected main.js:17
Angular 20
<anonymous> main.ts:23
- Maybe related to this bug in Tauri side: https://github.com/tauri-apps/tauri/issues/8369
- 主要语言
- TypeScript
- 星标
- 5
- 派生
- 1
- 平均合并
- 8 小时 11 分钟
- 30 天内合并 PR
- 15
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Orange-OpenSource/github-security-alerts 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
In `project documentation`, add more details for `macOS` users about how to run the app (suggestion)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 48/100
查看 Orange-OpenSource/github-security-alerts 的全部 Issue
相似的 Issue
-
resources
难度 2/5 1-3 小时 新手友好度 72/100
railmapgen/rmg-palette#2445 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
danielmiessler/LifeOS#2242 ·
维护者通常 5 天内回复
-
good first issue hacktoberfest help wanted translation
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
callstackincubator/appduct#129 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100