TypeError: crypto.hash is not a function
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
项目信息: node 21
1、pnpm create vite 创建最新的vite vue项目时
报这个依赖错误
2、pnpm dev 启动项目时
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
Reproduce the failure with Node 21 by running pnpm create vite for a Vue project, then pnpm dev; the issue provides screenshots but names no source file or test. Determine the compatible dependency or runtime combination that prevents crypto.hash is not a function, and confirm both commands complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, vite
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100