Closed peterhirn closed 1 month ago
Thanks for the report. I'm able to reproduce the issue. Looking into it.
@peterhirn So... technically I don't think this is an issue with uuid
. Your error is complaining about there not being a "wrapper.mjs" in .output/server/node_modules/uuid
, which is true...
$ ls .output/server/node_modules/uuid/wrapper.mjs
ls: .output/server/node_modules/uuid/wrapper.mjs: No such file or directory
... but the uuid
package supplies that file, as seen in the top-level node_modules that pnpm installs:
$ ls node_modules/uuid/wrapper.mjs
node_modules/uuid/wrapper.mjs
So it looks like vinxi build
is dropping that file on the floor for some reason.
That said, with the refactoring work that's gone into uuid@11
, I'm not sure we need wrapper.mjs any more. I've opened #822 to look into removing it.
@peterhirn Fixed in #822, published in uuid@11.0.2
. pnpm add uuid@latest
should get you sorted out.
Note: It's still weird that vinxi
isn't copying that wrapper.mjs file over, but probably not worth worrying about at this point.
Before you begin...
Description of the problem
Unclear if this is a bug here or in vinxi
Recipe for reproducing
pnpm create solid@latest -s solid-start-uuid-v11
Edit
src/entry-server.tsx
Additional information
pnpm dev
works as expected.Environment
Node: v23.1.0
Workaround
pnpm patch uuid