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

Debian编译报错 #17480

Open
1 task done
yzkoori opened this issue Nov 6, 2024 · 1 comment
Open
1 task done

Debian编译报错 #17480

yzkoori opened this issue Nov 6, 2024 · 1 comment
Labels
RSS bug Something isn't working

Comments

@yzkoori
Copy link

yzkoori commented Nov 6, 2024

路由地址

NOROUTE

完整路由地址

NOROUTE

相关文档

https://docs.rsshub.app/zh/deploy/

预期是什么?

完成编译

实际发生了什么?

编译失败

部署

自建

部署相关信息

Linux 5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 GNU/Linux Node.js v22.11.0

额外信息

pnpm : 9.12.3

/app/RSSHub# pnpm build

> [email protected] build /app/RSSHub
> tsx scripts/workflow/build-routes.ts

/app/RSSHub/.pnp.cjs:25137
    throw firstError;
    ^

Error: Your application tried to access get-tsconfig, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.

Required package: get-tsconfig
Required by: /app/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/

Require stack:
- /app/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/register-DCnOAxY2.cjs
- /app/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/cjs/index.cjs
- /app/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs
- /app/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/preflight.cjs
- internal/preload
    at require$$0.Module._resolveFilename (/app/RSSHub/.pnp.cjs:25136:13)
    at require$$0.Module._load (/app/RSSHub/.pnp.cjs:24986:42)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at Object.<anonymous> (/app/RSSHub/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/register-DCnOAxY2.cjs:1:211)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object.<anonymous> (node:internal/modules/cjs/loader:1689:10)
    at require$$0.Module._extensions..js (/app/RSSHub/.pnp.cjs:25180:33)

Node.js v22.11.0
 ELIFECYCLE  Command failed with exit code 1.

这不是重复的 issue

  • 我已经搜索了 现有 issue,以确保该错误尚未被报告。
@yzkoori yzkoori added the RSS bug Something isn't working label Nov 6, 2024
@yzkoori
Copy link
Author

yzkoori commented Nov 7, 2024

按照pnpm的提示安装了一堆依赖但还是没有解决问题,后来找到一个方法,删除根目录下.pnp.cjs文件,问题解决,删除重新再拉一遍仓库用pnpm也没复现问题。怀疑是之前用yarn build过一遍导致的。
但是目前版本用yarn 3.5.0 确实没办法build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant