Closed Mehdi-Hp closed 4 weeks ago
I have the same problem but it seems to be linked to the Cloudflare preset
Any suggestions on what I should downgrade for now? I tried downgrading unenv
and @nuxthub/core
, but no luck.
Interesting. I have a project with Nuxt/Content/UI/NuxtHub, everything up-to-date. I use nuxt-icon "behind" nuxt-ui because it is used by nuxt-ui, but the module itself is not declared in the nuxt.config.ts in the root of my peoject. I've built a lot of versions of my project, where I use icons, without any problem.
2 days ago I tried to fix the problem described in #259 by installing local collections and adding an icon
entry in my nuxt.config.ts with https://github.com/nuxt/icon/issues/259#issuecomment-2389235126 because I don't like the fact the icons won't load, it's definitely not a normal behaviour.
After this step, I encountered the issue described here. I spent 1-2 hours trying to understand how/why, because there was no reason to incriminate nuxt-icon (I don't build after each commit and npm run dev
was running fine). The fact it's because of nuxt-icon was definitely not obvious to me since I "just installed few icon collections and added options to nuxt-icon".
Hope this will help. You can try building with nuxt-ui and without nuxt-icon in your modules, I think you will be able to build your project... looks like when nuxt-icon is behind nuxt-ui proxy, everything works fine.
My 2 cents
edit : well, nope, I just applied again everything I said before and now the build is ok
clientBundle.scan : true
and sizeLimitKb: 256
Now I'm lost 🥳
I have recently encountered the same problem when the Nitro presets are set on cloudflare-pages. If I remove the Nuxthub module, I can build my project without any issues. I'm using Nuxt UI without integrating any extra @nuxt/icon.
With npm, I can build the application as usual.
It's strange that I only have this problem in new projects. I can still build old projects with Hub/UI error-free using pnpm. However, when I copy everything from those into a new application, I get the "stdin is not exported" error again.
Unfortunately, adding @nuxt/icon did not help.
node: 20.18.0 pnpm: 9.12.1 nuxt: 3.13.2
Sadly, adding an .npmrc
file with shamefully-hoist = true
seems to fix it.
Found via: https://github.com/harlan-zw/nuxt-seo/issues/218#issuecomment-2351823567
This just got fixed in the latest version of @nuxthub/core
🎊
Consider this get fixed. If this occurs again, please create a new issue with a minimal reproduction, thanks!
Not sure if it's directly from @nuxt/icon or a dependency breaking change, but
build
breaks as soon as you add@nuxt/icon
to modules.develop
works okay.Downgrading
unenv
or using the nightly version didn't help.To reproduce:
pnpx nuxthub init test-app
pnpx nuxi module add icon
pnpm build
Logs: