You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
50 | };
51 | exports.loadConfig = loadConfig;
52 | const getConfig = () => {
53 | // istanbul ignore next
54 | if (!finalConfig) {
55 | throw new Error('请先调用 loadConfig 方法');
^
error: 请先调用 loadConfig 方法
at getConfig (***/node_modules/surgio/build/config.js:55:15)
at new Provider (***/node_modules/surgio/build/provider/Provider.js:59:26)
at new ClashProvider (***/node_modules/surgio/build/provider/ClashProvider.js:25:9)
at ***/node_modules/surgio/build/provider/index.js:44:20
at getProvider (***/node_modules/surgio/build/provider/index.js:26:28)
at ***/hello.ts:4:24
Bun v1.1.21 (Linux x64)
希望能够将
surgio
作为第三方库使用, 例如:但得到了如下错误:
surgio/src/config.ts
Lines 20 to 61 in 7bc53d4
注意到
loadConfig()
需要从文件系统中读取surgio.conf.js
并保存在finalConfig
中. 是否可以允许程序化设置finalConfig
而无需surgio.conf.js
文件?The text was updated successfully, but these errors were encountered: