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

[Bug Report]: 修改.env文件后没有重新加载 #1871

Open
cordmaker opened this issue Oct 24, 2024 · 1 comment · May be fixed by #1835
Open

[Bug Report]: 修改.env文件后没有重新加载 #1871

cordmaker opened this issue Oct 24, 2024 · 1 comment · May be fixed by #1835
Labels
duplicate This issue or pull request already exists scope: hmr Error on hot module reload v2.0 v2.0 version

Comments

@cordmaker
Copy link

Steps to reproduce

在 app.vue 中打印 import.meta.env,启动服务后修改 .env 文件中的环境变量,服务会自动重启,但是打印的内容没有发生变化

Reproduce link

No response

What is actually happening?

修改 .env 后 import.meta.env 没有变化

System Info

@farmfe/cli: 1.0.4
@farmfe/core: 1.3.29
电脑: 2020 mac book pro m1 16+512
pnpm dev
@ErKeLost
Copy link
Member

1.x 的版本在重启服务上的设计有一些问题

可以试试 使用 nightly 版本

pnpm add @farmfe/{cli,core}@nightly

@fu050409 fu050409 added duplicate This issue or pull request already exists scope: hmr Error on hot module reload v2.0 v2.0 version labels Oct 24, 2024
@fu050409 fu050409 linked a pull request Oct 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists scope: hmr Error on hot module reload v2.0 v2.0 version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants