Reloading browser #724
Replies: 3 comments
-
Are you not running If you are running Overall, the dev setup is quite slow and memory hungry. On a decent laptop with 8-16 Gb RAM and an SSD the initial build takes about 60-90 seconds. Hot reloading is typically 3-15 seconds, depending on number of changed files and their location in the dependency tree. I am not sure what can cause the problem. So far it's been working for a few dozens of developers. Docker is guaranteed to work correctly. If not docker, maybe you could try a clean virtual machine? Maybe your global npm packages conflict with the project's packages? Do you place the project on an SSD? Are there any errors or warnings? Type checking consumes a lot of memory. You may try to disable type checking and linting by setting these env variables (in shell or in DEV_DISABLE_CHECKS=1
DEV_DISABLE_STYLELINT=1 |
Beta Was this translation helpful? Give feedback.
-
I used yarn dev but did prod:watch as well, same reloading issue with both even a simple html change from VS Code. Also though the project installed there were serveral 'warnings' about compatibility with core-js versions and lint dependencies. Took some jiggery pokery on both OS to install at all with all this. I'm still seeing if I can get Docker installed and it did seem like webpack should help with reloading. Cheers |
Beta Was this translation helpful? Give feedback.
-
@musicman11 warnings on However, I am not sure what you mean when you say
we don't really have any HTML in the project. If you meant that you modify the Please let me know what kind of changes you have in mind and what other problems you encounter while investigating this issue, and I will be glad to help. P.S. I also wanted to port the entire project to Next.js, so that we wouldn't need to maintain the build system, but it is not going very fast right now, as we have other priorities. |
Beta Was this translation helpful? Give feedback.
-
More a development question than the app itself, I'm running natively with Yarn as described in Readme (can't use Docker on my laptop). I can search for and edit code but each refresh causes the rebuild process to start again from Yarn Dev, at least 5 minutes on both Windows and Ubuntu. What are others using? Some live reload/browser sync?
Beta Was this translation helpful? Give feedback.
All reactions