\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\nconst flip = ref(false);\r\n\u003C/script>\r\n```\r\n\r\nWhile this works fine with nuxt-icon during development, it breaks in a Prod build. The transformations no longer get applied.\r\n\r\nIt would be great if nuxt-icon could also support these props, if possible. I'm open to help with this issue if someone could give me some pointers where to start.",[],138,"nuxt","icon","open","[Feature Request] Support Iconify Transformations","2024-03-15T09:15:14Z","https://github.com/nuxt/icon/issues/138",0.7460776,{"description":2876,"labels":2877,"number":2881,"owner":2868,"repository":2882,"state":2870,"title":2883,"updated_at":2884,"url":2885,"score":2886},"\"Demo\":\r\nhttps://github.com/JakeIsMeh/fonts-repro\r\n\r\nCurrently, there are no conventions on how to name variable versions of fonts, which can lead to many issues when users try to specifically select variable versions of fonts.\r\n\r\nFontsource has it's users specify `[font name] Variable` to use variable fonts, while Inter currently has users specify `InterVariable` (v4, from the website) or `Inter var` (v3).\r\n\r\nWhile I don't think that it is unreasonable for the OOTB behavior to expect plain names that are searchable across all providers, I think that this should either be called out in the docs or the parser becomes smart enough to process this (or warn when a font cannot be resolved).\r\n\r\nAdditionally, I believe that this, #172, and a perfect storm of a locally installed version of Inter contributed to https://github.com/nuxt/nuxt.com/pull/1589, showing that it is already a footgun in real-world scenarios.",[2878],{"name":2879,"color":2880},"documentation","0075ca",173,"fonts","DX: Document or improve variable font behaviour","2024-06-04T14:26:45Z","https://github.com/nuxt/fonts/issues/173",0.7691705,{"description":2888,"labels":2889,"number":2893,"owner":2868,"repository":2868,"state":2870,"title":2894,"updated_at":2895,"url":2896,"score":2897},"### Describe the feature\n\nauto finish app baseURL public static img.\r\n\r\n\u003Cimg width=\"1275\" alt=\"image\" src=\"https://github.com/nuxt/nuxt/assets/40666434/2a0df777-6ba3-45bb-a309-1a5af84671ba\">\r\n\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\n",[2890],{"name":2891,"color":2892},"pending triage","E99695",26848,"auto finish app baseURL public static img","2024-06-30T11:04:24Z","https://github.com/nuxt/nuxt/issues/26848",0.7764727,{"description":2899,"labels":2900,"number":2901,"owner":2868,"repository":2882,"state":2902,"title":2903,"updated_at":2904,"url":2905,"score":2906},"#### Output of `npx nuxi info`:\r\n\r\n```\r\nNuxt project info: \r\n\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v20.14.0\r\n- Nuxt Version: 3.11.2\r\n- CLI Version: 3.11.1\r\n- Nitro Version: 2.9.6\r\n- Package Manager: pnpm@9.1.4\r\n- Builder: -\r\n- User Config: devtools, modules, fonts\r\n- Runtime Modules: @nuxt/fonts@0.7.0\r\n- Build Modules: -\r\n------------------------------\r\n```\r\n\r\n#### My custom provider in `~/providers/ComputerModernFontProvider.ts`:\r\n\r\n```ts\r\nimport { defineFontProvider } from '@nuxt/fonts/utils'\r\n\r\nexport default defineFontProvider({\r\n async resolveFontFaces (fontFamily, defaults) {\r\n if (fontFamily === 'Computer Modern') {\r\n return { \r\n fonts: [\r\n { \r\n weight: 400,\r\n style: 'normal',\r\n src: { url: '\u003Clink-to-cdn>', format: 'otf' },\r\n },\r\n { \r\n weight: 400,\r\n style: 'italic',\r\n src: { url: '\u003Clink-to-cdn>', format: 'otf' },\r\n },\r\n { \r\n weight: 700,\r\n style: 'normal',\r\n src: { url: '\u003Clink-to-cdn>', format: 'otf' },\r\n },\r\n ]\r\n }\r\n }\r\n }\r\n})\r\n```\r\n\r\n#### Picture of the Error:\r\n\r\n\r\n\r\n#### Steps & Contribution\r\n\r\nI find this super weird since `./utils` **is** already defined in the `package.json` [here](https://github.com/nuxt/fonts/blob/8a00c3b0771bbcf0cd34c9e2a854eb77b501d8ff/package.json#L17).\r\nIf someone could give me some pointers towards the solution, I'd happily create a PR.\r\nThank you in advance.\r\n",[],170,"closed","Bug when importing `defineFontProvider`: Package subpath './utils' is not defined by \"exports\"","2024-09-23T12:06:54Z","https://github.com/nuxt/fonts/issues/170",0.6771964,{"description":2908,"labels":2909,"number":2910,"owner":2868,"repository":2869,"state":2902,"title":2911,"updated_at":2912,"url":2913,"score":2914},"I am using nuxt/icon as part of nuxt/ui (v3 alpha), and I am getting constant warnings about failing to load icons:\n```\n[Icon] failed to load icon `lucide:refresh-cw`\n```\nThis is coming up in my console 8+ times for a single page load, for example. I'm also facing an issue where upon using a new icon I've never loaded before, it won't load or appear at all, with the same warning occuring. It takes fully restarting the Nuxt app for the icon to then appear and become \"loadable\", however I am still facing this warning with the `refresh-cw` icon.\n\nI have the icon collection installed locally and it is detected upon load:\n```bash\nℹ Nuxt Icon server bundle mode is set to local 21:37:28\n✔ Nuxt Icon discovered local-installed 1 collections: lucide 21:37:31\nℹ Nuxt Icon client bundle consist of 8 icons with 1.73KB(uncompressed) in size\n```\nAnd I searched other issues, and have tried the following in my nuxt.config.ts as well to little help:\n```ts\n icon: {\n clientBundle: {\n scan: true,\n sizeLimitKb: 256\n }\n }\n```\nI feel like at this point it's a bug with nuxt/icon, or something is up with nuxt/ui that is causing these issues. Hoping for some help with this or to get it fixed if it is a bug.",[],339,"Constant \"failed to load icon\" warnings even with locally installed collection","2025-02-28T06:56:28Z","https://github.com/nuxt/icon/issues/339",0.70442194,{"description":2916,"labels":2917,"number":2918,"owner":2868,"repository":2882,"state":2902,"title":2919,"updated_at":2920,"url":2921,"score":2922},"`@nuxt/font` is fetching CSS files from Adobe Typekit. However, for fonts with East Asian languages, it is unable to fetch the CSS extensions.\r\n\r\nhttps://github.com/nuxt/fonts/blob/22ae0b124095a8381971d1bf531ceff3eed53024/src/providers/adobe.ts#L109\r\n\r\nBelow is the difference in the Adobe fonts screen:\r\n\r\nInter Variable ( css file include )\r\n\r\n\r\nPretendard ( javascript file include )\r\n\r\n\r\nEast Asian characters (especially CJK) seem to have a large size, so Adobe can't import the entire font by default or all characters. \r\n\r\n\r\n\r\nIf you look at the actual API being called, you'll see that East Asian languages don't come with css files.\r\n - [dpj7fny.js](https://use.typekit.net/dpj7fny.js) - a js file is output\r\n - [dpj7fny.css](https://use.typekit.net/dpj7fny.css) - 412 precondition failed\r\n\r\nCan you add support for these areas? \r\nIf not, you can update the documentation to avoid confusing Asian users.\r\n\r\nIn the logs, it looks like this, making it difficult to determine the cause.\r\n\r\n\r\n\r\nReference:\r\n1. Adobe fonts docs: https://helpx.adobe.com/kr/fonts/using/dynamic-subsetting.html\r\n2. Test font (Pretendard): https://fonts.adobe.com/fonts/pretendard\r\n\r\n",[],105,"Adobe font provider does not support dynamic subset","2024-04-01T14:38:00Z","https://github.com/nuxt/fonts/issues/105",0.7219476,{"description":2924,"labels":2925,"number":2932,"owner":2868,"repository":2882,"state":2902,"title":2933,"updated_at":2934,"url":2935,"score":2936},"I'm currently trying to add the adobe font \"Elena\" to my project, without success. \nMy searched led me to [#187](https://github.com/nuxt/fonts/issues/187) and it's fix [#192](https://github.com/nuxt/fonts/pull/192) but to no avail.\n\nwould kindly appreciate your help :)\n\nmy nuxt.config.ts fonts //config:\n\n```js\nfonts: {\n defaults: {\n weights: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],\n styles: ['normal', 'italic'],\n },\n adobe: {\n id: ['xxxxxx'],\n },\n fonts: {\n experimental: {\n processCSSVariables: true, // \u003C-- tested if that made a difference\n },\n },\n families: [\n {\n name: 'Industry',\n provider: 'adobe',\n fallbacks: ['Oswald', 'Arial', 'Helvetica', 'sans-serif'],\n },\n {\n name: 'Elena Web Basic', \u003C--- tested \"Elena\", \"Elena Basic\", \"Elena-Web-Basic\"\n provider: 'adobe',\n fallbacks: ['Georgia', 'Times New Roman', 'serif'],\n },\n {\n name: 'Oswald',\n provider: 'google',\n fallbacks: ['Roboto Sans', 'Arial', 'Helvetica', 'sans-serif'],\n },\n ],\n },\n```\n\n```js\nTailwind Config:\n\n`extend: {\n fontFamily: {\n display: ['Industry', 'Oswald', 'Arial', 'Helvetica', 'sans-serif'],\n serif: ['\"Elena Web Basic\"', 'Georgia', 'Times New Roman', 'serif'], //\u003C-- also tried \"Elena\", \"Elena Basic\", \"Elena-Web-Basic\"\n },`\n```\n\nthe typekit css:\n\n```css\n@import url(\"https://p.typekit.net/p.css?s=1&k=dou8fmt&ht=tk&f=25310.25314.14437.14439&a=8358342&app=typekit&e=css\");\n\n@font-face {\nfont-family:\"industry\";\nsrc:url(\"https://use.typekit.net/af/99114e/000000000000000077519a43/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3\") format(\"woff2\"),url(\"https://use.typekit.net/af/99114e/000000000000000077519a43/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3\") format(\"woff\"),url(\"https://use.typekit.net/af/99114e/000000000000000077519a43/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3\") format(\"opentype\");\nfont-display:auto;font-style:normal;font-weight:700;font-stretch:normal;\n}\n\n@font-face {\nfont-family:\"industry\";\nsrc:url(\"https://use.typekit.net/af/e15078/000000000000000077519a3f/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n6&v=3\") format(\"woff2\"),url(\"https://use.typekit.net/af/e15078/000000000000000077519a3f/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n6&v=3\") format(\"woff\"),url(\"https://use.typekit.net/af/e15078/000000000000000077519a3f/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n6&v=3\") format(\"opentype\");\nfont-display:auto;font-style:normal;font-weight:600;font-stretch:normal;\n}\n\n@font-face {\nfont-family:\"elena-web-basic\";\nsrc:url(\"https://use.typekit.net/af/5d3cbc/00000000000000007735daea/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3\") format(\"woff2\"),url(\"https://use.typekit.net/af/5d3cbc/00000000000000007735daea/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3\") format(\"woff\"),url(\"https://use.typekit.net/af/5d3cbc/00000000000000007735daea/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3\") format(\"opentype\");\nfont-display:auto;font-style:normal;font-weight:700;font-stretch:normal;\n}\n\n@font-face {\nfont-family:\"elena-web-basic\";\nsrc:url(\"https://use.typekit.net/af/d89e6b/00000000000000007735daec/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3\") format(\"woff2\"),url(\"https://use.typekit.net/af/d89e6b/00000000000000007735daec/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3\") format(\"woff\"),url(\"https://use.typekit.net/af/d89e6b/00000000000000007735daec/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3\") format(\"opentype\");\nfont-display:auto;font-style:normal;font-weight:400;font-stretch:normal;\n}\n\n.tk-industry { font-family: \"industry\",sans-serif; }\n.tk-elena-web-basic { font-family: \"elena-web-basic\",serif; }`\n\n```",[2926,2929],{"name":2927,"color":2928},"needs reproduction","C94E53",{"name":2930,"color":2931},"closed-by-bot","ededed",340,"adobe fonts with differing name information not loading","2024-10-31T02:02:15Z","https://github.com/nuxt/fonts/issues/340",0.7470981,{"description":2938,"labels":2939,"number":2944,"owner":2868,"repository":2868,"state":2902,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Environment\n\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v18.16.1\r\n- Nuxt Version: 3.11.2\r\n- CLI Version: 3.11.1\r\n- Nitro Version: 2.9.6\r\n- Package Manager: npm@9.5.1\r\n- Builder: -\r\n- User Config: devtools, ssr, nitro, app, modules, vite, css, elementPlus, plugins\r\n- Runtime Modules: @element-plus/nuxt@1.0.9, @pinia/nuxt@0.4.11\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nexport const BASE_URL = process.env.BASE_URL;\r\nimport { getToken, delToken } from \"#imports\";\r\n\r\nconst request = () => {\r\n\r\n const http = async (url, method, data = null, params = {}, options = {}) => {\r\n const token = getToken();\r\n const app = useNuxtApp()\r\n const loginInvalid = () => {\r\n app.runWithContext(() => {\r\n navigateTo('/login', { replace: true })\r\n })\r\n }\r\n const preOptions = {\r\n baseURL: BASE_URL,\r\n method: method,\r\n headers: {\r\n Authorization: 'Bearer ' + token,\r\n 'Content-Type': method !== 'get' ? 'application/json' : undefined,\r\n },\r\n body: method !== 'get' ? JSON.stringify(data) : undefined,\r\n params: params,\r\n ...options,\r\n };\r\n\r\n\r\n const { data: resData, error, response } = await useFetch(url, {\r\n ...preOptions,\r\n onRequest({ request, options }) {\r\n // 请求前的处理\r\n },\r\n onRequestError({ request, options, error }) {\r\n // 处理请求错误\r\n },\r\n onResponse({ request, response, options }) {\r\n // 处理响应数据\r\n if (response.status === 401) {\r\n loginInvalid()\r\n }\r\n },\r\n onResponseError({ request, response, options }) {\r\n // 处理响应错误\r\n },\r\n });\r\n\r\n\r\n return resData.value;\r\n\r\n\r\n\r\n };\r\n\r\n const get = (url, params = {}, options = {}) => {\r\n return http(url, 'get', null, params, options);\r\n };\r\n\r\n const post = (url, data, params = {}, options = {}) => {\r\n return http(url, 'post', data, params, options);\r\n };\r\n\r\n const put = (url, data, params = {}, options = {}) => {\r\n return http(url, 'put', data, params, options);\r\n };\r\n\r\n const del = (url, data, params = {}, options = {}) => {\r\n return http(url, 'delete', data, params, options);\r\n };\r\n\r\n return {\r\n get,\r\n post,\r\n put,\r\n delete: del\r\n };\r\n};\r\n\r\nexport default request();\r\n\n\n### Describe the bug\n\nWhen usefetch carries the token request interface from cookies, if the returned status code is 401, I called loginInvalid(), but navigateTo did not take effect\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2940,2943],{"name":2941,"color":2942},"3.x","29bc7f",{"name":2891,"color":2892},27509,"navigateTo doesn't work in usefetch ","2024-06-10T19:37:18Z","https://github.com/nuxt/nuxt/issues/27509",0.7694954,{"description":2950,"labels":2951,"number":2955,"owner":2868,"repository":2868,"state":2902,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Environment\n\n- Operating System: Darwin\r\n- Node Version: v22.1.0\r\n- Nuxt Version: 3.12.3\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.7\r\n- Package Manager: pnpm@9.5.0\r\n- Builder: -\r\n- User Config: apollo, app, build, css, devtools, experimental, formkit, gtm, i18n, modules, nitro, pwa, runtimeConfig, site, sitemap, sourcemap, ssr, vite, compatibilityDate\r\n- Runtime Modules: @nuxtjs/i18n@8.3.1, @nuxtjs/sitemap@5.3.5, @nuxtjs/apollo@5.0.0-alpha.8, @pinia/nuxt@0.5.1, @vite-pwa/nuxt@0.9.1, @formkit/nuxt@1.6.5, @zadigetvoltaire/nuxt-gtm@0.0.13\r\n- Build Modules: -\n\n### Reproduction\n\n\u003Cimg width=\"1296\" alt=\"screenshot\" src=\"https://github.com/user-attachments/assets/46463494-a8b8-4f77-ad49-d4e9acd81bb5\">\r\n\n\n### Describe the bug\n\nThere is no way to remove this error, i don't know what to do. I don't even know where it's from. \n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2952,2953],{"name":2891,"color":2892},{"name":2927,"color":2954},"FBCA04",28200,"Uncaught (in promise) non-precached-url: non-precached-url :: [{\"url\":\"/\"}]","2024-07-18T17:03:57Z","https://github.com/nuxt/nuxt/issues/28200",0.77296233,{"description":2961,"labels":2962,"number":2965,"owner":2868,"repository":2868,"state":2902,"title":2966,"updated_at":2967,"url":2968,"score":2969},"### Environment\n\nNuxt 3.12.3 with Nitro 2.9.7 \n\n### Reproduction\n\nsee Describe\n\n### Describe the bug\n\nthis is offical example,But it didn't work\r\nhttps://nuxt.com/docs/guide/recipes/custom-usefetch\r\n\r\nthis is plugins,to injecct nuxt\r\n```\r\nexport default defineNuxtPlugin(() => {\r\n const router=useRouter()\r\n const api = $fetch.create({\r\n baseURL: 'http://127.0.0.1:4523/m1/4632367-4282747-default',\r\n async onResponseError({response}) {\r\n if (response.status === 401) {\r\n console.log(\"yes, is runing here,but navigateTo doesn't work\")\r\n await navigateTo('/login', {\r\n redirectCode: 302,\r\n })\r\n }\r\n }\r\n })\r\n\r\n // Expose to useNuxtApp().$api\r\n return {\r\n provide: {\r\n api\r\n }\r\n }\r\n})\r\n```\r\n\r\nThe page does not change to login.vue when my http status is 401, navigateTo doesn't work\r\nI'm pretty sure this is the official case\r\n\r\n```\r\n\u003Cscript setup lang=\"ts\">\r\nlet path=\"/user/1\"\r\nconst { $api } = useNuxtApp()\r\nconst { data: modules } = await useAsyncData(path, () => $api(path))\r\n\u003C/script>\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2963],{"name":2879,"color":2964},"5319e7",27991,"navigateTo in $fetch onResponseError is doesn't work","2024-12-11T19:42:02Z","https://github.com/nuxt/nuxt/issues/27991",0.77412295,["Reactive",2971],{},["Set"],["ShallowReactive",2974],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fjir7mo3I3Ivt_fvckXAt8vrn4efEJcC3DlTrpNqvWxg":-1},"/nuxt/icon/150"]