histoire icon indicating copy to clipboard operation
histoire copied to clipboard

Nuxt error when using nuxt-seo-kit

Open jordan-boyer opened this issue 2 years ago • 2 comments

Describe the bug

When using nuxt seo kit with histoire, histoire still run normally but nuxt log an error with nuxt-head which cause this error to be display in each story

Screen of bug ![image](https://user-images.githubusercontent.com/6780830/232984437-93198ce1-0acb-4433-8ab9-34d2c6628548.png)

Reproduction

https://stackblitz.com/edit/histoire-nuxt3-starter-eb2jnf-5rqrar

System Info

System:
    OS: Linux 5.19 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
    Memory: 3.92 GB / 14.86 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh

Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
    pnpm: 8.0.0 - ~/.local/share/pnpm/pnpm

Packages infos can be found in the stackblitz

Used Package Manager

pnpm

Validations

jordan-boyer avatar Apr 19 '23 06:04 jordan-boyer

Just to let you know i did find a workaround.

I've use an env variable to disabled nuxt-seo-kit when launching histoire

DISABLED_SEO=true histoire dev

But in don't really like the syntax, do we have a way to pass an .env file to histoire like nuxt does ?

jordan-boyer avatar Apr 22 '23 07:04 jordan-boyer