vitesse-nuxt3 icon indicating copy to clipboard operation
vitesse-nuxt3 copied to clipboard

App tries to show "page views since 54 years ago"

Open robinzimmermann opened this issue 1 year ago • 2 comments

Describe the bug

Screenshot of error in the app and in the Javascript console:

image

Reproduces almost immediately:

  1. Clone the Vitesse Nuxt repo.
  2. Run pnpm install.
  3. Run pnpm run generate.
  4. As instructed, run npx serve .output/public
  5. 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.

robinzimmermann avatar Dec 05 '23 03:12 robinzimmermann

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

robinzimmermann avatar Dec 05 '23 03:12 robinzimmermann

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

joshbmarshall avatar Mar 17 '24 13:03 joshbmarshall