首页 > 解决方案 > 使用frontity时,在编辑器中更改源代码,浏览器显示原始内容

问题描述

我在使用frontity的时候遇到了一个问题,更新了代码,但是控制台没有响应,浏览器中的页面也没有相应的变化。我不得不删除 node_modules 目录并执行 yarn 来生成这个目录,这样浏览页面就会相应地改变

标签: reactjs

解决方案


确保您的包是本地包,而不是在 node_modules 目录中。Frontity 社区论坛中也出现了类似的问题:https ://community.frontity.org/t/code-changed-but-the-console-do-not-take-any-response/4459


推荐阅读