\n\u003C!-- OR -->\n\u003CIcon name=\"my-icon:a\" v-if=\"flag\" />\n\u003CIcon name=\"my-icon:b\" v-else />\n```\nin `nuxt.config.ts`\n```ts\nicon: {\n provider: 'server',\n customCollections: [\n {\n prefix: 'my-icon',\n dir: './assets/icon/svg',\n },\n ],\n},\n// ...\nnitro: {\n preset: 'static',\n},\n```\n\nIf toggle value of `flag`, \neverything works well in development, \nbut it throws 404 error for `my-icon:b` after building and generating.\n(it works well with `v-show`) \n\nProject info:\n```\n------------------------------\n- Operating System: Windows_NT\n- Node Version: v22.8.0\n- Nuxt Version: 3.16.0\n- CLI Version: 3.23.0\n- Nitro Version: 2.11.6\n- Package Manager: pnpm@9.9.0\n- Builder: -\n- User Config: modules, icon, colorMode, shadcn, fonts, googleSignIn, app, imports, css, vite, nitro, compatibilityDate, telemetry\n- Runtime Modules: @nuxtjs/tailwindcss@6.13.2, @nuxt/icon@1.11.0, @nuxt/fonts@0.11.0, @nuxt/image@1.9.0, @nuxt/eslint@1.2.0, @pinia/nuxt@0.10.1, pinia-plugin-persistedstate/nuxt@4.2.0, @nuxt/test-utils/module@3.17.2, @nuxtjs/color-mode@3.5.2, shadcn-nuxt@1.0.3, @vueuse/nuxt@13.0.0, nuxt-vue3-google-signin@0.0.11\n- Build Modules: -\n------------------------------\n```\n",[],380,"nuxt","icon","open","Local icon 404 after `nuxi generating` if with `:name=\"flag?'my-icon:icon-a':'my-icon:icon-b'\"`","2025-03-26T15:31:52Z","https://github.com/nuxt/icon/issues/380",0.7239822,{"description":2865,"labels":2866,"number":2870,"owner":2857,"repository":2871,"state":2872,"title":2873,"updated_at":2874,"url":2875,"score":2876},"### 🐛 The bug\n\nHi,\n\nNot sure if this will be a nuxt-scripts or an actual nuxt bug (likely) but here it is anyway.\n\nAfter updating to latest nuxt and nuxt scripts, a function we had to add a custom animated marker on a google map now doesn't work with an error about \"ohash\".\n\nThe function:\n\n```js\nasync function addMarker() {\n const markerEl = document.createElement('div');\n markerEl.className = 'marker';\n\n const marker = await mapRef.value.createAdvancedMapMarker({\n position: { lat: 32.641765653283635, lng: -16.912268145592915 },\n content: markerEl,\n });\n\n marker.content.classList.add('bounce');\n}\n```\n\nThe error:\n\n\n```js\nUncaught (in promise) Error: Cannot serialize HTMLDivElement\n at o.serializeBuiltInType (ohash.D__AXeF1.mjs:1:1191)\n at o.serializeObject (ohash.D__AXeF1.mjs:1:652)\n at o.$object (ohash.D__AXeF1.mjs:1:1553)\n at o.serialize (ohash.D__AXeF1.mjs:1:485)\n at o.serializeObjectEntries (ohash.D__AXeF1.mjs:1:1408)\n at o.serializeObject (ohash.D__AXeF1.mjs:1:985)\n at o.$object (ohash.D__AXeF1.mjs:1:1553)\n at o.serialize (ohash.D__AXeF1.mjs:1:485)\n at serialize (ohash.D__AXeF1.mjs:1:66)\n at hash (index.mjs:7:17)\n```\n\nIf we don't create the custom element and just call createAdvancedMapMarker without setting the \"content\" property, then a default google marker will show up without animation.\n\n\n\n\n\n\n### 🛠️ To reproduce\n\nhttps://stackblitz.com/edit/nuxt-starter-qamsz2n5?file=pages%2Findex.vue\n\n### 🌈 Expected behavior\n\nWe should be able to define a custom marker element as we could on previous nuxt/nuxt-scripts versions\n\n### ℹ️ Additional context\n\nI also made a stackblitz where it is working. The only difference being the nuxt and nuxt scripts versions.\n\nWorking version repro: https://stackblitz.com/edit/nuxt-starter-ysuot6w5?file=pages%2Findex.vue",[2867],{"name":2868,"color":2869},"bug","d73a4a",436,"scripts","closed","Hashing error with latest nuxt + nuxt-scripts","2025-03-25T09:43:46Z","https://github.com/nuxt/scripts/issues/436",0.6574726,{"description":2878,"labels":2879,"number":2870,"owner":2857,"repository":2880,"state":2872,"title":2881,"updated_at":2882,"url":2883,"score":2876},"The link to the documentation (https://v0.test-utils.nuxtjs.org/api-reference/setup) leads to a browser-side error page.",[],"test-utils","Link to documentation does not work","2023-12-02T00:13:10Z","https://github.com/nuxt/test-utils/issues/436",{"description":2885,"labels":2886,"number":2887,"owner":2857,"repository":2880,"state":2872,"title":2888,"updated_at":2889,"url":2890,"score":2891},"Trying to get the test-utils to work, but after adding the preset, JEST simply won't run, saying that the test utils cannot be found.\r\n\r\nThis is straight from the docs. I've tried a bunch of different versions, and simply cannot get them to work. This is required (I think) in order to get the global function calls (such as definePageMeta) to work in tests.\r\n\r\n> ● Validation Error:\r\n>\r\n> Preset @nuxt/test-utils not found.\r\n>\r\n> Configuration Documentation:\r\n> https://jestjs.io/docs/configuration.html\r\n\r\nThe test utils are installed.\r\n\r\nAny ideas?",[],280,"Preset @nuxt/test-utils not found.","2023-12-02T00:18:11Z","https://github.com/nuxt/test-utils/issues/280",0.6876744,{"labels":2893,"number":2900,"owner":2857,"repository":2857,"state":2872,"title":2901,"updated_at":2902,"url":2903,"score":2904},[2894,2897],{"name":2895,"color":2896},"documentation","5319e7",{"name":2898,"color":2899},"3.x","29bc7f",11896,"Docs; Broken link to https://v3.nuxtjs.org/concepts/hybrid-rendering 404 not found","2023-01-19T15:48:18Z","https://github.com/nuxt/nuxt/issues/11896",0.6935456,{"labels":2906,"number":2909,"owner":2857,"repository":2857,"state":2872,"title":2910,"updated_at":2911,"url":2912,"score":2913},[2907,2908],{"name":2895,"color":2896},{"name":2898,"color":2899},11879,"Docs; Broken link to https://v3.nuxtjs.org/concepts/modules","2023-01-19T15:48:17Z","https://github.com/nuxt/nuxt/issues/11879",0.69604015,{"description":2915,"labels":2916,"number":2917,"owner":2857,"repository":2880,"state":2872,"title":2918,"updated_at":2919,"url":2920,"score":2921},"in [module testing docs](https://test-utils.nuxtjs.org/api-reference/module-testing) page It only shows the following options:\r\n- `addPlugin`\r\n- `addLayout` \r\n- `addErrorLayout`\r\n- `addServerMiddleware` \r\n- `requireModule`\r\n\r\nBut the `addModule` option is not documented although it can be used!",[],312,"Module testing page is missing the \"addModule\" option","2023-12-02T00:13:07Z","https://github.com/nuxt/test-utils/issues/312",0.70504725,{"description":2923,"labels":2924,"number":2928,"owner":2857,"repository":2857,"state":2872,"title":2929,"updated_at":2930,"url":2931,"score":2932},"**Resources**\r\nhttps://nuxtjs.org/examples/with-vuetify \r\n\r\npage not found\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c920\">#c920\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2925],{"name":2926,"color":2927},"2.x","d4c5f9",1060,"page not found","2023-01-18T15:40:43Z","https://github.com/nuxt/nuxt/issues/1060",0.7062564,{"labels":2934,"number":2942,"owner":2857,"repository":2857,"state":2872,"title":2943,"updated_at":2944,"url":2945,"score":2946},[2935,2938,2941],{"name":2936,"color":2937},"stale","ffffff",{"name":2939,"color":2940},"pending triage","E99695",{"name":2926,"color":2927},6157,"NuxtServerError - Cannot find module ... index.js...","2023-01-22T15:34:44Z","https://github.com/nuxt/nuxt/issues/6157",0.70779556,{"description":2948,"labels":2949,"number":2950,"owner":2857,"repository":2880,"state":2872,"title":2951,"updated_at":2952,"url":2953,"score":2954},"Hi 👋 \r\nI am attempting to use `@nuxt/test-utils` on a fresh nuxt-project.\r\nHowever, the setup function throws with the following message: \r\n`No 'pages' directory found in \u003CPATH-TO-MY-PROJECT>/test/fixture. Did you mean to run 'nuxt' in the parent ('../') directory?`\r\n\r\nI have tried to pass `configFile` and `rootDir` with path values relative to the test file. \r\nIs this a bug or am I doing something wrong? \r\n\r\nAll help is greatly appreciated 😄 \r\n \r\nHere is the relevant code: \r\n```ts\r\n// \u003CPATH-TO-MY-PROJECT>/test/pages/index.test.ts\r\nimport { setupTest } from '@nuxt/test-utils'\r\n\r\ndescribe(\"The index page\", () => {\r\n\r\n setupTest({ server: true /*, configFile: \"../../nuxt.config.js\", rootDir: \"../../\" */});\r\n});\r\n```\r\n```ts\r\n// \u003CPATH-TO-MY-PROJECT>/jest.config.ts\r\n// jest.config.ts\r\nimport type { Config } from '@jest/types';\r\n\r\n// Sync object\r\nconst config: Config.InitialOptions = {\r\n verbose: true,\r\n preset: \"@nuxt/test-utils\",\r\n};\r\nexport default config;\r\n```",[],279,"Setup throws \"no 'pages' directory found\"","2023-12-02T00:23:08Z","https://github.com/nuxt/test-utils/issues/279",0.7127953,["Reactive",2956],{},["Set"],["ShallowReactive",2959],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fDJwonLm7dIXfFql0Ph2Y1YOB0ggD1KWTIzpMrzch0B8":-1},"/nuxt/test-utils/286"]