\n \u003Cdiv>\n \u003Cdiv\n id=\"test-wrapper\"\n >\n \u003Cp>\n Hello Vue 3\n \u003C/p>\n \u003C/div>\n \u003C/div>\n\u003C/body>\n```\n\nBut it looks like this:\n```vue\n\u003Cbody>\n \u003Cdiv\n data-v-app=\"\"\n id=\"__nuxt\"\n />\n \u003Cdiv>\n \u003Cdiv\n id=\"test-wrapper\"\n msg=\"Hello Vue 3\"\n >\n \u003Cp>\n Hello in component\n \u003C/p>\n \u003C/div>\n \u003C/div>\n\u003C/body>\n```\n\n### Additional context\n\nI tried solving the issue with no avail, I'm sorry I can not be of more help 😢 ",[2881],{"name":2871,"color":2882},"5D08F5",1014,"test-utils","Rerender from @testing-library/vue not working","2025-03-07T14:25:15Z","https://github.com/nuxt/test-utils/issues/1014",0.7302398,{"description":2890,"labels":2891,"number":2901,"owner":2860,"repository":2884,"state":2902,"title":2903,"updated_at":2904,"url":2905,"score":2906},"This happens on any test when I trigger a click. Not yet tying any other trigger events.\r\n\r\nError\r\n`TypeError: Cannot read properties of undefined (reading 'error')`\r\n\r\nVersion\r\n`\"nuxt-vitest\": \"0.10.5\",`\r\n\r\nConfig\r\n```\r\nimport { defineVitestConfig } from 'nuxt-vitest/config';\r\n\r\nexport default defineVitestConfig({\r\n test: {\r\n environment: 'nuxt',\r\n },\r\n});\r\n```\r\n\r\nTest\r\n```\r\nimport { describe, it, expect } from 'vitest';\r\nimport { mount, VueWrapper } from '@vue/test-utils';\r\n\r\nimport ApiTypeTabsDescription from '../components/ApiTypeTabsDescription.vue';\r\nlet wrapper: VueWrapper;\r\nwrapper = mount(ApiTypeTabsDescription);\r\n\r\ndescribe('ApiTypeTabsDescription', () => {\r\n it('More text is visible', async () => {\r\n const toggle = wrapper.find('.register-show-more-btn-text');\r\n await toggle.trigger('click');\r\n await wrapper.vm.$nextTick();\r\n expect(wrapper.find('.register-show-more-description').exists()).toBe(true);\r\n });\r\n});\r\n```\r\n\r\n```\r\nTypeError: Cannot read properties of undefined (reading 'error')\r\n ❯ HTMLScriptElement.dispatchEvent node_modules/.pnpm/happy-dom@12.1.2/node_modules/happy-dom/src/event/EventTarget.ts:102:54\r\n ❯ HTMLScriptElement.dispatchEvent node_modules/.pnpm/happy-dom@12.1.2/node_modules/happy-dom/src/nodes/element/Element.ts:920:29\r\n ❯ Function.dispatchError node_modules/.pnpm/happy-dom@12.1.2/node_modules/happy-dom/src/window/WindowErrorUtility.ts:60:32\r\n ❯ Function.loadExternalScript node_modules/.pnpm/happy-dom@12.1.2/node_modules/happy-dom/src/nodes/html-script-element/HTMLScriptElementUtility.ts:54:24\r\n```",[2892,2895,2898],{"name":2893,"color":2894},"vitest-environment","b60205",{"name":2896,"color":2897},"needs reproduction","DE7793",{"name":2899,"color":2900},"closed-by-bot","ededed",533,"closed","When using trigger('click') get this error & tests don't run TypeError: Cannot read properties of undefined (reading 'error')","2023-12-13T01:51:03Z","https://github.com/nuxt/test-utils/issues/533",0.46050814,{"description":2908,"labels":2909,"number":2910,"owner":2860,"repository":2911,"state":2902,"title":2912,"updated_at":2913,"url":2914,"score":2915},"This will allow us to iterate faster and speed up the build for both sites, we can see at a later stage for adding auth again to nuxt.com once we:\n- Have features for authenticated users outside studio\n- Hybrid rendering on Nuxt 3 with Session/Auth module compatible for it (will need a `@nuxtjs/strapi` update once ready), this means having a static page with the ability to check the user session with a script in header (like color-mode module for SSG) to redirect before pages render. And move the authenticated links/buttons/actions on client-side with placeholders on the server.\n- Nuxt Content Query builder with better performance on SSR\n\n`nuxt.com` will be deployed on Vercel with `nuxi generate`.\n\n`studio.nuxt.com` will have a landing page with the pricing in it + a register for beta button, deployed as an SSR app on Vercel.\nThe `modules/editor` will be renamed to `modules/studio` so it could share components for the project view to the same UI in development (`localhost:3000/_studio/`) with no login and creating route apis (`/api/_studio`) for editing the project locally (basically using Nitro storage to edit files `useStorage()`).\n\nBy separating them, on top of iterating faster in development, we can also launch studio.nuxt.com and nuxt.com at two different dates, as well as opening the beta access to nuxt.com (translators, partners, insiders) and studio.nuxt.com (partners, theme creators) at different times.\n\nHow much time would this take @benjamincanac ?",[],760,"nuxt.com","[Studio] Move Auth & Projects into `studio.nuxt.com`","2022-07-05T09:42:12Z","https://github.com/nuxt/nuxt.com/issues/760",0.69257104,{"description":2917,"labels":2918,"number":2922,"owner":2860,"repository":2911,"state":2902,"title":2923,"updated_at":2924,"url":2925,"score":2926},"- [ ] Remove landing\n- [ ] Branch deployment on domain\n- [ ] Update logo\n- [ ] Upgrade docus\n- [ ] Link to go back to nuxt.com\n",[2919],{"name":2920,"color":2921},"roadmap","ff7a1a",535,"`v3.nuxt.com`","2022-11-17T11:41:11Z","https://github.com/nuxt/nuxt.com/issues/535",0.69467694,{"description":2928,"labels":2929,"number":2922,"owner":2860,"repository":2884,"state":2902,"title":2934,"updated_at":2935,"url":2936,"score":2926},"Hey,\r\n\r\nI just upgraded to the latest vitest 0.32.0 with nuxt-vitest 0.8.5 and have a error with the module import regarding:\r\nhttps://vitest.dev/guide/common-errors.html\r\n\r\n```shell\r\nError: Cannot find module 'virtual:nuxt:/project/.nuxt/nuxt.config.mjs'.\r\n\r\n- If you rely on tsconfig.json to resolve modules, please install \"vite-tsconfig-paths\" plugin to handle module resolution.\r\n - Make sure you don't have relative aliases in your Vitest config. Use absolute paths instead. Read more: https://vitest.dev/guide/common-errors\r\n ❯ node_modules/nuxt/dist/app/composables/payload.js:6:31\r\n 4| import { getCurrentInstance } from \"vue\";\r\n 5| import { useNuxtApp, useRuntimeConfig } from \"../nuxt.js\";\r\n 6| import { renderJsonPayloads } from \"#build/nuxt.config.mjs\";\r\n | ^\r\n 7| export function loadPayload(url, opts = {}) {\r\n 8| if (process.server) {\r\n ❯ node_modules/nuxt/dist/app/composables/index.js:49:206\r\n\r\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯\r\nSerialized Error: {\r\n \"code\": \"ERR_MODULE_NOT_FOUND\",\r\n}\r\n```\r\n\r\nExample of my minimum setup\r\n```js\r\nimport { defineVitestConfig } from 'nuxt-vitest/config';\r\nimport tsconfigPaths from \"vite-tsconfig-paths\";\r\n\r\nexport default defineVitestConfig({\r\n plugins: [tsconfigPaths()], // this is added regarding the link of vitest\r\n test: {\r\n globals: true,\r\n clearMocks: true,\r\n restoreMocks: true,\r\n threads: false,\r\n testTimeout: 300000,\r\n setupFiles: [\r\n new URL('tests/unit.i18n.setup.ts', import.meta.url).pathname,\r\n new URL('tests/unit.vuetify.setup.ts', import.meta.url).pathname,\r\n new URL('tests/unit.router.setup.ts', import.meta.url).pathname\r\n ],\r\n deps: {\r\n inline: ['element-plus', /@nuxt\\/test-utils/],\r\n },\r\n ssr: {\r\n noExternal: [/vue-i18n/, 'vuetify'],\r\n },\r\n },\r\n});\r\n```\r\n\r\nI can clarify that this config works with vitest 0.31.4 without any errors. Previously imports like `#build/nuxt.config.mjs` where no issue inside the `.nuxt` folder.\r\n\r\nHelp would be appreciated!",[2930,2933],{"name":2931,"color":2932},"bug","d73a4a",{"name":2893,"color":2894},"defineVitestConfig with vitest 0.32.0 Cannot find module paths","2023-12-02T23:07:42Z","https://github.com/nuxt/test-utils/issues/535",{"description":2938,"labels":2939,"number":2940,"owner":2860,"repository":2911,"state":2902,"title":2941,"updated_at":2942,"url":2943,"score":2944},"- [ ] Search\n- [ ] Subnavbar Links\n- [ ] Examples\n- [ ] Community / Open Source Guides\n- [ ] v2 migration nuxtjs.org",[],1306,"Documentation Update","2023-07-10T12:42:01Z","https://github.com/nuxt/nuxt.com/issues/1306",0.70834416,{"labels":2946,"number":2951,"owner":2860,"repository":2860,"state":2902,"title":2952,"updated_at":2953,"url":2954,"score":2955},[2947,2948],{"name":2857,"color":2858},{"name":2949,"color":2950},"3.x","29bc7f",13537,"docs: update migration guide to nuxt 3","2023-01-19T17:03:42Z","https://github.com/nuxt/nuxt/issues/13537",0.7089263,{"labels":2957,"number":2960,"owner":2860,"repository":2860,"state":2902,"title":2961,"updated_at":2962,"url":2963,"score":2964},[2958,2959],{"name":2857,"color":2858},{"name":2949,"color":2950},10926,"Documentation Progress","2023-01-19T14:32:52Z","https://github.com/nuxt/nuxt/issues/10926",0.723334,["Reactive",2966],{},["Set"],["ShallowReactive",2969],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4AEL6d65Ou_N8ybT-NPtVmR1RY0EHQYoy-S3YV4jB7M":-1},"/nuxt/nuxt.com/533"]