The basic example of nuxt3/histoire fails to run. The file untyped.a47b2336.cjs does not exist in node_modules.
This bug doesn't occur with nuxt 3.8, but is present with 3.9.
/Users/sagalbot/.config/yarn/global/node_modules/.bin/pnpm run story:dev
> histoire-example-nuxt3@0.0.1 story:dev /Users/sagalbot/Sites/histoire
> histoire dev
node:internal/modules/cjs/loader:995
const err = new Error(message);
^
Error: Cannot find module './shared/untyped.a47b2336.cjs'
Require stack:
- /Users/sagalbot/Sites/histoire/node_modules/untyped/dist/index.d.cts
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Function.resolve (node:internal/modules/cjs/helpers:109:19)
at _resolve (/Users/sagalbot/Sites/histoire/node_modules/jiti/dist/jiti.js:1:251148)
at jiti (/Users/sagalbot/Sites/histoire/node_modules/jiti/dist/jiti.js:1:253746)
at /Users/sagalbot/Sites/histoire/node_modules/untyped/dist/index.d.cts:1:1147
at evalModule (/Users/sagalbot/Sites/histoire/node_modules/jiti/dist/jiti.js:1:256443)
at jiti (/Users/sagalbot/Sites/histoire/node_modules/jiti/dist/jiti.js:1:254371)
at /Users/sagalbot/Sites/histoire/node_modules/@nuxt/kit/dist/index.mjs:4:16
at evalModule (/Users/sagalbot/Sites/histoire/node_modules/jiti/dist/jiti.js:1:256443)
at jiti (/Users/sagalbot/Sites/histoire/node_modules/jiti/dist/jiti.js:1:254371) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/sagalbot/Sites/histoire/node_modules/untyped/dist/index.d.cts'
]
}
Node.js v18.12.1
ELIFECYCLE Command failed with exit code 1.
Process finished with exit code 1
Describe the bug
The basic example of nuxt3/histoire fails to run. The file
untyped.a47b2336.cjs
does not exist innode_modules
.This bug doesn't occur with
nuxt 3.8
, but is present with3.9
.Reproduction
https://github.com/sagalbot/histoire-nuxt-issue
System Info
Used Package Manager
npm
Validations