vitesse-nuxt3
vitesse-nuxt3 copied to clipboard
App tries to show "page views since 54 years ago"
Describe the bug
Screenshot of error in the app and in the Javascript console:
Reproduces almost immediately:
- Clone the Vitesse Nuxt repo.
- Run
pnpm install
. - Run
pnpm run generate
. - As instructed, run
npx serve .output/public
- Then open the app in the browser
Reproduction
The steps in the description show the error out-of-the-box, no reproduction repo is needed.
System Info
System:
OS: macOS 14.1.1
CPU: (10) arm64 Apple M2 Pro
Memory: 958.78 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
pnpm: 8.10.5 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 119.0.6045.199
Safari: 17.1
### Used Package Manager
pnpm
### Validations
- [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
It also reproduced with Node 20:
System:
OS: macOS 14.1.1
CPU: (10) arm64 Apple M2 Pro
Memory: 656.53 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
pnpm: 8.10.5 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 119.0.6045.199
Safari: 17.1
It's just a flash of uninitialised content. in components/PageView.vue
add a v-if="data?.startAt"
to the div to hide it when it's not defined or is "0" - 1st Jan 1970 or currently 54 years ago