You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using Histoire with Ant Design Vue on a [email protected] (Vite 5) starter template, but during story collection, Histoire throws an error:
Cannot find module <project>/node_modules/@babel/runtime/helpers/esm
imported from file:///home/projects/vitejs-vite-cmhkz4,
file:///home/projects/,
file:///home/projects/vitejs-vite-cmhkz4/_index.js,
file:///home/projects/node_modules
Full Log
Collect stories start MyButton
Error while collecting story /home/projects/vitejs-vite-cmhkz4/src/MyButton.story.vue:
Error: Cannot find module /home/projects/vitejs-vite-cmhkz4/node_modules/@babel/runtime/helpers/esm imported from file:///home/projects/vitejs-vite-cmhkz4, file:///home/projects/, file:///home/projects/vitejs-vite-cmhkz4/_index.js, file:///home/projects/node_modules
at _resolve (file:///home/projects/vitejs-vite-cmhkz4/node_modules/mlly/dist/index.mjs:2155:19)
at resolveSync (file:///home/projects/vitejs-vite-cmhkz4/node_modules/mlly/dist/index.mjs:2164:10)
at resolvePathSync (file:///home/projects/vitejs-vite-cmhkz4/node_modules/mlly/dist/index.mjs:2174:24)
at resolvePath (file:///home/projects/vitejs-vite-cmhkz4/node_modules/mlly/dist/index.mjs:2178:28)
at Module.isValidNodeImport (file:///home/projects/vitejs-vite-cmhkz4/node_modules/mlly/dist/index.mjs:2638:30)
at _shouldExternalize (file:///home/projects/vitejs-vite-cmhkz4/node_modules/vite-node/dist/server.mjs:95:38)
at shouldExternalize (file:///home/projects/vitejs-vite-cmhkz4/node_modules/vite-node/dist/server.mjs:72:19)
at ViteNodeServer.shouldExternalize (file:///home/projects/vitejs-vite-cmhkz4/node_modules/vite-node/dist/server.mjs:242:12)
at ViteNodeServer._fetchModule (file:///home/projects/vitejs-vite-cmhkz4/node_modules/vite-node/dist/server.mjs:339:36)
at ViteNodeServer.fetchModule (file:///home/projects/vitejs-vite-cmhkz4/node_modules/vite-node/dist/server.mjs:278:14)
Collect stories end 21ms
Error occurs with any Ant Design Vue components in my components or stories.
Components work normally in standard Vite dev mode.
Stackblitz sandbox from Histoire docs (with older Vite 4 dependencies) works fine.
A Stackblitz reproduction link is attached for reference.
Describe the bug
Hello!
I tried using Histoire with Ant Design Vue on a [email protected] (Vite 5) starter template, but during story collection, Histoire throws an error:
Full Log
A Stackblitz reproduction link is attached for reference.
Reproduction
Stackblitz Sandbox (from vite.new/vue-ts with Vite 5)
https://stackblitz.com/edit/vitejs-vite-cmhkz4?file=src%2FMyButton.vue
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: