Bug: Errors after upgrade to 0.24 `load url unenv/node/process`
Summary
After upgrading from 0.23.0 to 0.24.0 our Storybook CI started failing with the following errors:
Cannot find package 'unenv/node/process' imported from '/builds/x/technology/x/frontend/node_modules/@storybook/addon-vitest/dist/vitest-plugin/global-setup.mjs
2025-07-18T11:40:47.137036Z 01O [31m[1mCaused by: Error[22m: Failed to load url unenv/node/process (resolved id: unenv/node/process). Does the file exist?[39m
2025-07-18T11:40:47.137037Z 01O [90m [2m❯[22m loadAndTransform ../../node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:[2m35725:17[22m[39m
2025-07-18T11:40:47.137037Z 01O
2025-07-18T11:40:47.137038Z 01O [31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[22m[39m
2025-07-18T11:40:47.137039Z 01O [31m[1mSerialized Error:[22m[39m [90m{ code: 'ERR_LOAD_URL' }[39m
is this a package conflict or an actual bug?
I'm also having this issue.
Error: Failed to scan for dependencies from entries:
/Users/.../libraries/react-library/index.html
✘ [ERROR] Cannot find module 'unenv/mock/empty' from '.' [plugin node-stdlib-browser-alias]
I'm also having this issue.
Error: Failed to scan for dependencies from entries: /Users/.../libraries/react-library/index.html ✘ [ERROR] Cannot find module 'unenv/mock/empty' from '.' [plugin node-stdlib-browser-alias]
I'm having the exact same issue.
@miguel-nascimento @sapphi-red any ideas?
My change only changes the behavior when it's used with rolldown-vite, so I don't think it's directly caused by the update of this package.
@miguel-nascimento then?
@sapphi-red any chance you could look into fixing it regardless? Seems like you're the most active here
I need a minimal reproduction that works with 0.23.0 and doesn't with 0.24.0 for investigation.