yjl9903 / resonance-market

实时 查看 / 上报 雷索纳斯市场行情
https://resonance.breadio.wiki/
MIT License
45 stars 5 forks source link

主分支的新更改导致项目无法在Window上启动了 #21

Closed Ximu-Luya closed 8 months ago

Ximu-Luya commented 8 months ago

Describe the bug

以下是报错

[22:00:22]  ERROR  [worker reload] [worker init] Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'

  at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:239:11)
  at defaultLoad (node:internal/modules/esm/load:130:3)
  at ModuleLoader.load (node:internal/modules/esm/loader:409:13)
  at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:56)
  at new ModuleJob (node:internal/modules/esm/module_job:65:26)
  at #createModuleJob (node:internal/modules/esm/loader:303:17)
  at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:260:34)
  at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:241:17)
  at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:21)

我去Stack Overflows上找了找问题,似乎出在import()这类语句上。 但奇怪的是,昨天我切出的开发分支没有问题,现在也可以正常运行,所以我确信是新的提交中的内容造成的在Windows环境上的启动报错。

Reproduction

使用Windows启动项目

System Info

Windows 11, Node v20.11.1

Used Package Manager

None

yjl9903 commented 8 months ago

修了

Ximu-Luya commented 8 months ago

大佬好快