Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
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
PS C:\Users\user\GitHub\test> npm init stencil
√ Select a starter project.
Starters marked as [community] are developed by the Stencil Community,
rather than Ionic. For more information on the Stencil Community, please see
https://github.com/stencil-community » component Collection of web components that can be used anywhere
√ Project name ... test-stencil
√ Confirm? ... yes
✔ All setup 🎉 in 20 ms
We suggest that you begin by typing:
> cd test-stencil
> npm install
> npm start
You may find the following commands will be helpful:
> npm start
Starts the development server.
> npm run build
Builds your components/app in production mode.
> npm test
Starts the test runner.
Further reading:
- https://github.com/ionic-team/stencil-component-starter
Happy coding! 🎈
PS C:\Users\user\GitHub\test> cd test-stencil
PS C:\Users\user\GitHub\test\test-stencil> npm i
PS C:\Users\user\GitHub\test\test-stencil> npm ls
test-stencil@0.0.1 C:\Users\user\GitHub\test\test-stencil
├── @stencil/core@2.21.0
├── @types/jest@27.5.2
├── jest-cli@27.5.1
├── jest@27.5.1
└── puppeteer@10.4.0
PS C:\Users\user\GitHub\test\test-stencil> npm run start
> test-stencil@0.0.1 start
> stencil build --dev --watch --serve
[23:06.5] @stencil/core
[23:06.8] v2.21.0
[23:09.6] build, test-stencil, dev mode, started ...
[23:09.7] transpile started ...
[23:12.4] transpile finished in 2.79 s
[23:12.4] copy started ...
[23:12.4] generate lazy started ...
[23:12.5] copy finished (0 files) in 51 ms
[23:13.2] generate lazy finished in 781 ms
[23:13.3] build finished, watching for changes... in
3.66 s
[23:13.3] http://localhost:3333/
[23:13.5] rebuild, test-stencil, dev mode, started ...
[23:13.5] transpile started ...
[23:13.5] transpile finished in 37 ms
[23:13.5] generate lazy started ...
[23:13.7] generate lazy finished in 162 ms
[23:13.7] rebuild finished, watching for changes...
in 211 ms
[23:14.0] rebuild, test-stencil, dev mode, started ...
[23:14.0] transpile started ...
[23:14.0] transpile finished in 27 ms
[23:14.0] generate lazy started ...
[23:14.1] generate lazy finished in 135 ms
[23:14.1] rebuild finished, watching for changes...
in 171 ms
[23:14.5] rebuild, test-stencil, dev mode, started ...
[23:14.5] transpile started ...
[23:14.5] transpile finished in 48 ms
[23:14.5] generate lazy started ...
[23:14.7] generate lazy finished in 210 ms
[23:14.7] rebuild finished, watching for changes...
in 270 ms
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