Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev 启动报错 #802

Closed
crazyair opened this issue Mar 14, 2023 · 3 comments
Closed

dev 启动报错 #802

crazyair opened this issue Mar 14, 2023 · 3 comments

Comments

@crazyair
Copy link

NutUI scenes(nutui 场景)

H5(@nutui/nutui-react)

NutUI-react version(nutui-react 版本)

1.4.10

React version(react 版本)

18.2.0

Operating environment(运行环境)

dev:h5

Citation method(引用方式)

npm

Node version(node 版本)

16

Browser and its version(浏览器及其版本)

chrome

System and its version(系统及其版本)

mac

Reproduction link(重现链接)

yarn dev
image

Steps to reproduce(重现步骤)

yarn dev

What is expected?(期望的结果是什么?)

启动起来

What is actually happening?(实际的结果是什么?)

启动报错

@eiinu
Copy link
Member

eiinu commented Mar 14, 2023

测试了 yarn、npm 安装项目依赖后,没有复现类似问题。
可能是使用了 pnpm 安装项目依赖,其中 @testing-library/jest-dom 包的依赖 @types/testing-library__jest-dom 无法被自动安装,相关 issue pnpm/pnpm#4723 testing-library/jest-dom#314
解决办法是手动安装 @types/testing-library__jest-dom

@crazyair
Copy link
Author

测试了 yarn、npm 安装项目依赖后,没有复现类似问题。 可能是使用了 pnpm 安装项目依赖,其中 @testing-library/jest-dom 包的依赖 @types/testing-library__jest-dom 无法被自动安装,相关 issue pnpm/pnpm#4723 testing-library/jest-dom#314 解决办法是手动安装 @types/testing-library__jest-dom

一开始用 npm install 下载失败,才使用了 pnpm,毕竟 pnpm 下载很快,基本不会出错,希望项目本身把依赖补全。

@eiinu
Copy link
Member

eiinu commented Mar 14, 2023

测试了 yarn、npm 安装项目依赖后,没有复现类似问题。 可能是使用了 pnpm 安装项目依赖,其中 @testing-library/jest-dom 包的依赖 @types/testing-library__jest-dom 无法被自动安装,相关 issue pnpm/pnpm#4723 testing-library/jest-dom#314 解决办法是手动安装 @types/testing-library__jest-dom

一开始用 npm install 下载失败,才使用了 pnpm,毕竟 pnpm 下载很快,基本不会出错,希望项目本身把依赖补全。

最近在做 pnpm 迁移,会尽快增加该依赖

@eiinu eiinu closed this as completed Mar 14, 2023
eiinu added a commit to eiinu/nutui-react that referenced this issue Mar 15, 2023
oasis-cloud pushed a commit that referenced this issue Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants