netless-io / netless-io/flat-server
执行报错node ./dist/index.js
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 684
- Forks
- 277
- PR merge metrics
- No merged PRs in 30d
Description
E:\code\jc\flat-server>node ./dist/index.js
E:\code\jc\flat-server\dist\webpack:\flat-server\src\constants\Config.ts:40
export const Salt = config.login.salt;
^
TypeError: Cannot read properties of undefined (reading 'salt')
at Object../src/constants/Config.ts (E:\code\jc\flat-server\dist\webpack:\flat-server\src\constants\Config.ts:40:34)
at webpack_require (E:\code\jc\flat-server\dist\webpack:\flat-server\webpack\bootstrap:19:1)
at Object../src/index.ts (E:\code\jc\flat-server\dist\webpack:\flat-server\src\index.ts:4:1)
at webpack_require (E:\code\jc\flat-server\dist\webpack:\flat-server\webpack\bootstrap:19:1)
at E:\code\jc\flat-server\dist\webpack:\flat-server\webpack\startup:4:1
at Object. (E:\code\jc\flat-server\dist\index.js:26006:12)
at Module._compile (node:internal/modules/cjs/loader:1706:14)
at Object..js (node:internal/modules/cjs/loader:1839:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
at Function._load (node:internal/modules/cjs/loader:1263:12)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running node ./dist/index.js and inspect src/constants/Config.ts at line 40, where config.login.salt fails. Trace how the configuration is loaded and identify why login is unavailable. Done means the server starts without this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100