unbuild not found
angelhdzmultimedia opened this issue · comments
Environment
Nuxi 3.6.5 1:39:18 PM
1:39:19 PM
RootDir: C:/Users/AngelHdz/Documents/Programming/TypeScript/projects/ahdz-nuxt-scaffold 1:39:19 PM
Nuxt project info: 1:39:19 PM
- Operating System: Windows_NT
- Node Version: v20.10.0
- Nuxt Version: 0.0.0
- Nitro Version: -
- Package Manager: pnpm@7.33.6
- Builder: webpack
- User Config: modules
- Runtime Modules: -
- Build Modules: -
Reproduction
https://github.com/angelhdzmultimedia/ahdz-nuxt-scaffold
Describe the bug
I have a nuxi fork which I'm extending to add more templates, for a while now.
It has been working. Yesterday was working on a fresh nuxt app, and got error, learned it was an unjs/untyped related issue.
Added "resolutions": { "untyped": "1.4.0" }
and got solved.
Today I wanted to use my cli to create a new nuxt project and got error with unbuild. Made many changes, from fixed untyped version, to downgrading unbuild from v2 to latest v1, to changing my prepack script from unbuild
to pnpm unbuild
. I'm out of options.
Is this issue related to untyped or different?
Additional context
No response
Logs
No response
More Context
If I install it locally like pnpm add -g C:/path/to/ahdz-nuxt-scaffold
, it works.
If I navigate to C:/path/to/ahdz-nuxt-scaffold
and run node ./bin/scaffold.mjs
it works.
Running pnpm prepack
executes unbuild
as usual, and the ./dist
is generated successfully.
The issue presents when I comit to github, and then install from my repo:
pnpm add -g https://github.com/angelhdzmultimedia/ahdz-nuxt-scaffold.git
.
It used to work until yesterday.
Solved
Apparently reinstalling pnpm (and deleting all files related to it) solved this issue pnpm/pnpm#7547 (comment) related to creating a new nuxt project with pnpx nuxi init <name>
, and solved this issue.