Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] mfsu 拦截 .json 并有缓存的问题 #10329

Closed
Tracked by #10423
sorrycc opened this issue Jan 22, 2023 · 1 comment · Fixed by #10331
Closed
Tracked by #10423

[Bug] mfsu 拦截 .json 并有缓存的问题 #10329

sorrycc opened this issue Jan 22, 2023 · 1 comment · Fixed by #10331
Assignees

Comments

@sorrycc
Copy link
Member

sorrycc commented Jan 22, 2023

如何复现?

1、git clone git@github.com:sorrycc/weekly.git
2、安装依赖
3、把 mfsu 开回来,npx umi config set mfsu {}
4、npx umi dev
5、访问 /posts.json 。
6、修改 public/posts.json 文件
7、刷新 /post.json,会发现改动没有生效,期望是改动生效

而如果把 mfsu 关闭,重复 5-7 是会生效的。

@stormslowly
Copy link
Member

stormslowly commented Jan 22, 2023

pr 提了~

workardound

  • 用 mfsu: { strategy: "normal"}
    or

  • 手动的删除下 node_modules/.cache/mfsu/post.json 如果 msfu 重建构建又会copy

$ls node_modules/.cache/mfsu/*.json | grep MFSU -v | xargs rm 

and i am drunk right now wish you good luck

This was referenced Feb 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants