Hi! It's me again - I logged some Nuxt issues a while ago. I want to say thank you for looking at those notes and making changes to your project!
I really like what you're making. I've been looking forward to trying it again and I'm working on another Nuxt build over the next couple of weeks.
I've found couple more issues which I think might be related to each other.
pnpm add @anolilab/unplugin-favicons
with project using Nuxt 3.15.0
results in this messgeWARN Issues with peer dependencies found
@anolilab/unplugin-favicons 1.0.5
βββ β unmet peer rollup@^3: found 4.29.1
βββ β unmet peer vite@"^3 || ^4 || ^5": found 6.0.6
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: {
enabled: true
},
modules: [
'@anolilab/unplugin-favicons/nuxt',
],
unpluginFavicons: {
logo: "./assets/browserIcons/icon.svg",
favicons: {
appName: "redacted",
developerName: "redacted",
developerURL: "redacted",
background: "#bada55",
theme_color: "#c0ff33",
icons: {
windows: false,
yandex: false,
}
}
}
}
After running nuxt generate
to bundle a static site, I can see the generated files in ./nuxt/dist/client
, but not in ./output/public
. You can test this with a package.json
similar to below.
"scripts": {
"generate": "nuxt generate",
"preview:production": "pnpm generate && pnpm serve .output/public",
},
"devDependencies": {
"serve": "^14.2.4",
}
Then run pnpm preview:production
# Incorrect
https://github.com/anolilab/unplugin-favicons/blob/main/examples/nuxt
# Correct
https://github.com/anolilab/unplugin-favicons/tree/main/examples/nuxt3
configKey
to the documentation the same way other module authors do. I had to poke around in the code to find the right property so that I could use the alternative (but still common) way of structuring the nuxt config.Something like
You can customize the module's behavior by using the unpluginFavicons property in nuxt.config
No response
No response
System:
OS: macOS 15.2
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 756.31 MB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 22.12.0 - ~/.nvm/versions/node/v22.12.0/bin/node
npm: 11.0.0 - ~/.nvm/versions/node/v22.12.0/bin/npm
pnpm: 9.15.2 - ~/.nvm/versions/node/v22.12.0/bin/pnpm
Watchman: 2024.06.17.00 - /usr/local/bin/watchman
Browsers:
Chrome: 131.0.6778.206
Safari: 18.2
npmPackages:
@anolilab/unplugin-favicons: ^1.0.5 => 1.0.5
pnpm
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too