Describe the bug
We've recently updated our project to nuxt 3.20 (from nuxt 3.7), and it seems histoire is no longer compatible with it.
I've tried with versions 0.17, 1.0.0-alpha.1 and 1.0.0-beta.1 (latest at this point in time).
The error I'm getting is:
SyntaxError: Cannot use 'import.meta' outside a module
at Script.runInThisContext (node:vm:322:1534)
at Object.runInThisContext (node:vm:322:4385)
at evalModule (/home/projects/histoire-nuxt3-starter-ehahnfp1/node_modules/jiti/dist/jiti.js:1:247199)
at jiti (/home/projects/histoire-nuxt3-starter-ehahnfp1/node_modules/jiti/dist/jiti.js:1:245316)
at eval (/home/projects/histoire-nuxt3-starter-ehahnfp1/node_modules/@histoire/plugin-nuxt/dist/index.js:100:70)
Node.js v20.19.1
Reproduction
Minimal reproduction can be found here:
https://stackblitz.com/edit/histoire-nuxt3-starter-ehahnfp1
System Info
System:
OS: macOS 26.2
CPU: (10) x64 Apple M1 Pro
Memory: 41.52 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.11.1 - /Users/lisa.law/.nvm/versions/node/v24.11.1/bin/node
npm: 11.6.2 - /Users/lisa.law/.nvm/versions/node/v24.11.1/bin/npm
Browsers:
Chrome: 138.0.7204.93
Firefox: 147.0.4
Safari: 26.2
npmPackages:
vite: ^4.4.4 => 4.5.14
Used Package Manager
npm
Validations
Describe the bug
We've recently updated our project to nuxt 3.20 (from nuxt 3.7), and it seems histoire is no longer compatible with it.
I've tried with versions 0.17, 1.0.0-alpha.1 and 1.0.0-beta.1 (latest at this point in time).
The error I'm getting is:
Reproduction
Minimal reproduction can be found here:
https://stackblitz.com/edit/histoire-nuxt3-starter-ehahnfp1
System Info
System: OS: macOS 26.2 CPU: (10) x64 Apple M1 Pro Memory: 41.52 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.11.1 - /Users/lisa.law/.nvm/versions/node/v24.11.1/bin/node npm: 11.6.2 - /Users/lisa.law/.nvm/versions/node/v24.11.1/bin/npm Browsers: Chrome: 138.0.7204.93 Firefox: 147.0.4 Safari: 26.2 npmPackages: vite: ^4.4.4 => 4.5.14Used Package Manager
npm
Validations