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

使用npm run dev:mock失败 #146

Open
LucasYao93 opened this issue Feb 22, 2023 · 4 comments
Open

使用npm run dev:mock失败 #146

LucasYao93 opened this issue Feb 22, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@LucasYao93
Copy link

LucasYao93 commented Feb 22, 2023

tdesign-react-starter 版本

develop branch code

重现链接

https://github.com/Tencent/tdesign-react-starter

重现步骤

  1. 克隆develop branch代码到本地
  2. npm install
  3. npm run dev:mock

浏览器报错如下
image

image

期望结果

页面正常显示

image

实际结果

No response

框架版本

  • "@types/react": "^17.0.38"
  • "@vitejs/plugin-react": "^1.3.2"

浏览器版本

Microsoft Edge Version 110.0.1587.50 (Official build) (64-bit)

系统版本

Windows

Node版本

18.14.1

补充说明

No response

@github-actions
Copy link

👋 @LucasYao93,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link

github-actions bot commented Feb 22, 2023

♥️ 有劳 @xucz 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @LucasYao93

@uyarn uyarn added the bug Something isn't working label Feb 23, 2023
@smilebuz
Copy link

同问,请问这个问题有解决吗,谢谢 @uyarn @xucz

@SuperLeven
Copy link

将.env下的NODE_ENV值改成development就可以了

你这样做,正式环境不会有问题吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants