vuejs / vuejs/devtools

TypeError: crypto.hash is not a function

Open
#913 3 comments 0 reactions 0 assignees View on GitHub

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项目时

报这个依赖错误
Image

2、pnpm dev 启动项目时

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.