-
Notifications
You must be signed in to change notification settings - Fork 793
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: devserver keeps reloading #3952
Comments
Hey @jolting 👋 Thanks for the detailed bug report! It's super helpful when trying to narrow down the root cause of issues like this. Unfortunately, I was unable to replicate this on my Windows machine with the same versions of Node, npm and Stencil. Can you do me a favor and see if there's anything running locally that could be updating your source/compiled code in the background? This could be a VS Code extension, a |
I closed everything except a cmd running |
I downgraded to |
@jolting can you give me a little more context of where you're running |
I've tried both. I normally use VS code, but I closed it to see if that was the issue. It doesn't change the behavior. I did try to build stencil myself, but I was running into a webpack issue. It seems webpack defaults to 'md4' which is no longer supported by ssl in my version of node.
I added a hashFunction to sys-nodes.ts and rebuilt stencil on version 2.21.0 and for some reason my local build works, but when I fetch from npm it doesn't work.
here's my local build results.
And when I reverted to the npm build I got the issue again.
I guess it's possible my npm package is corrupted. I'll see if I can find another Windows machine to reproduce the issue on. |
I have the same issue on Mac. Just upgraded stencil to 2.21.0, and the devserver gets stuck in a loop. Downgrading to 2.20.0 also fixed the issue for me. |
@janarvaez do you have a reproduction case that you can share? I'm currently unable to reproduce this |
@rwaskiewicz not at the moment, sorry. This is a quite big internal project. Let me see if I manage to reproduce this in any other demo project I submitted before in other tickets. |
just chiming in to say "me too" :) - Stencil 2.21.0 I removed node_packages - re-installed and the issue went away |
Ha! I didn't go through the --debug route cause I was fixing something in a rush, but for some reason Stencil was saying the watchIgnoredRegex: [
{...}
/.\/*\.md/,
], Is it possible that Stencil is now watching in areas where it previously wasn't? |
I'm wondering if this change is related. |
Confirming this also happens for me. But I've narrowed it to VS Code. I can run This behavior happens on my local copy of this repository.
|
with older node version 14 LTS the problem is gone. It will not reloading. When using node v16 or v18 LTS the problem of reloading is back. |
Hey folks, At this time, we still don't have a reliable way to reproduce this issue. We're seeing this across OS, node versions, IDE's (or lack thereof). Unfortunately, that affects our ability to track the root cause of this issue down. For those that are running into this issue, can you edit your existing comment (or add a new one) with the following info:
Thanks for your help ahead of time! I know this is a particularly frustrating issue. Hopefully if we pool this info we can get a better common denominator here. |
|
|
With --debug I get the following
|
Experiencing the same issue in 2.22.2:
|
Hi, Same issue for me just after upgrading to 3.0.0
Webstorm 2022.3.2 (Built Jan. 24, 2023); EDIT: |
I am having this same issue. Not using VS code:
|
just had this again. This time the culprit was |
Hi I'm also running into this issue:
|
Hey folks 👋 We're still actively looking into this, and are approaching it from a few different angles. One way folks could be of (additional) help is to install a special dev build of Stencil with additional logging statements enabled by default and reporting back to us. We have two builds available, one for teams/projects on Stencil v2 (built on top of v2.22.2), and another for projects on Stencil v3 (built on top of v3.1.0). How You Can Help
Builds
Thanks! |
package.json 😕
|
Hi there - I'm having the exact same problem (and I'm so glad I'm not the only one). I'm on Windows 10 trying to use Stencil 3. Interestingly, the issue is present on my work laptop but not on my own PC. I can confirm this has nothing to do with the IDE, because I just set up a new project entirely from PowerShell and the issue persisted. I installed the dev build and this is what it outputs (apparently it's stumbling over all kinds of One workaround we found is to add Hope this helps you a little. Thanks for looking into it! |
I wonder if it's a nodejs bug. It looks like nodejs marked one of their watcher tests as flaky. Probably unrelated, but it is somewhat similar in the sense that they can't seem to reproduce it on all machines. That also doesn't explain the Mac issues that some are reporting. |
Hey folks 👋 I have two dev builds of Stencil that may fix this issue, one for Stencil v2 users, and one for Stencil v3 users. If anyone running into this particular issue could install either version (if you're on Stencil v2.X, use the first one. if you're on Stencil v3.X, use the second one) and report back as to whether that fixes the issue at hand, that be much appreciated.
If you implemented any of the workarounds listed in this issue, please be sure to revert them as well as a part of your testing Thanks! |
Works for me. |
That fixed it on my end. :) |
@rwaskiewicz thank you for your efforts! |
Fixes for me as well, thanks! |
The PR associated with this issue has landed and is included in today's v2.22.3 release and v3.2.0 release. As a result, I'm going to close this issue. Should this issue reappear, please feel free to open a new issue. Thanks again! |
Prerequisites
Stencil Version
2.21.0
Current Behavior
The page loads, but looks like it's constantly reloading even though there are no changes to any of the files.
Expected Behavior
The example loads once.
System Info
OS: Windows 11 Node: v18.12.1 npm: 8.19.2 Browser: Chrome 108.0.5359.125 +-- @stencil/core@2.21.0 +-- @types/jest@27.5.2 +-- jest-cli@27.5.1 +-- jest@27.5.1 `-- puppeteer@10.4.0
Steps to Reproduce
The devserver keeps reloading forever, which seems strange to me. I expected it to load once unless I changed something.
Code Reproduction URL
https://github.com/jolting/stencil-test
Additional Information
No response
The text was updated successfully, but these errors were encountered: