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
❯ yarn dev
yarn run v1.22.21
$ node ./src/main.js
file:///P:/Xiying/node_modules/koishi/lib/index.mjs:2
import Loader from "@koishijs/loader";
^^^^^^
SyntaxError: The requested module '@koishijs/loader' does not provide an export named 'default'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:214:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
Node.js v20.10.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Describe the bug
运行时出现以下错误:
Steps to reproduce
./src/main.js代码:
Expected behavior
正常运行并出现
6200
端口Screenshots
No response
Versions
Additional context
package.json
文件内容:The text was updated successfully, but these errors were encountered: