[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)
Describe the bug
以下是报错
我去Stack Overflows上找了找问题,似乎出在import()这类语句上。 但奇怪的是,昨天我切出的开发分支没有问题,现在也可以正常运行,所以我确信是新的提交中的内容造成的在Windows环境上的启动报错。
Reproduction
使用Windows启动项目
System Info
Used Package Manager
None