Open rhendric opened 3 years ago
Aha, adding @prefresh/core
to devDependencies
fixes it.
That... doesn't seem right. @prefresh/core
is a direct dependency of @prefresh/nollup
. This might be a bug with pnpm
? Seems weird that it isn't installing a dependency of a dependency.
It looks like .pnpm
does some sort of strange flattening of dependencies? That's definitely going to cause problems. I'm not entirely sure how that's fixed though... Not an issue related to create-nollup-app
though.
The pnpm docs seem to indicate that this sort of thing usually happens because some package ought (in pnpm's opinion, I guess?) to have a dependency on another but doesn't. So maybe this is a Prefresh bug? But maybe the template should include @prefresh/core
in the dependencies too? Honestly I don't know; I'm just feeling my way around here.
Out of the box,
create-nollup-app --name test-app --template preact && cd test-app && pnpm i && pnpm start
fails withDoesn't happen with the other templates, doesn't happen with npm. I'm evaluating switching to pnpm, so I'm not yet familiar enough with how it does things differently to offer a guess about why it breaks this, sorry!