\r\n \u003C/nuxt-link>\r\n \u003Crouter-link v-else-if=\"!nuxt && to\" :to=\"to\" class=\"base-button\" :disabled=\"disabled\">\r\n \u003Cslot/>\r\n \u003C/router-link>\r\n \u003Cbutton v-else type=\"button\" @click=\"$emit('click')\" class=\"base-button\" :disabled=\"disabled\">\r\n \u003Cslot/>\r\n \u003C/button>\r\n\u003C/template>\r\n```\r\n\r\nSee https://stackoverflow.com/questions/74593611/detect-in-vue-component-if-its-used-in-nuxt-3-or-somewhere-else\r\n\r\n**This worked perfectly in Nuxt 2** because there was a global nuxt object you could use to check against, but this does not exist anymore.\r\n\r\nI've seen there is a **__NUXT__** property in the browser, but you can't address the window object when using SSR.\r\n\r\nAlso, process.env.NUXT_VITE_NODE_OPTIONS can't be used to check against in the browser.\r\n\r\n**There needs to be a way to detect the framework from within components without requiring imports from Nuxt, that would fail when used outside of Nuxt.**\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] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[2933,2936],{"name":2934,"color":2935},"3.x","29bc7f",{"name":2924,"color":2937},"E99695",19698,"Way to detect Nuxt framework from library during SSR / CSR","2024-08-13T13:19:34Z","https://github.com/nuxt/nuxt/issues/19698",0.73075396,{"description":2944,"labels":2945,"number":2950,"owner":2875,"repository":2875,"state":2886,"title":2951,"updated_at":2952,"url":2953,"score":2954},"### Version\n\n[v1.4.0](https://github.com/nuxt.js/releases/tag/v1.4.0)\n\n### Reproduction link\n\n[https://github.com/hartmut-co-uk/nuxt-forceupdate-bug-reproduce](https://github.com/hartmut-co-uk/nuxt-forceupdate-bug-reproduce)\n\n### Steps to reproduce\n\nHi, please follow reproduction link provided.\n\n_) git clone https://github.com/hartmut-co-uk/nuxt-forceupdate-bug-reproduce.git\nA.1) start the app via `yarn run dev`\nA.2) open start page, use (click) buttons - in particular top button from layout - '[page.$forceUpdate from layout]'\nA.3) check console / store / $store.state.random template rendered output\nA.4) the button from layout '[page.$forceUpdate from layout]' does invoke the $forceUpdate - triggering the page `fetch` method -> store commit -> state change..\n\nB.1) build and start the app in prod mode via `yarn run build && yarn start`\nB.2) open start page, use (click) buttons - in particular top button from layout - '[page.$forceUpdate from layout]'\nB.3) check console / store / $store.state.random template rendered output\nB.4) doesn't work...\n\n### What is expected ?\n\nA.4) & B.4) should result in the same behaviour client side.\nrunning nuxt in built / prod mode should allow to call `this.$refs.page.$forceUpdate()`\n\n### What is actually happening?\n\nit's working in dev mode, not in prod mode\n\n### Additional comments?\n\nThis has been setup & tested in *nuxt-edge*\n\nPlease ask if any questions!\n\nUsage scenario: from layout page header bar - I have a global 'create' which doesn't do a route change but allows creating (http POST) new elements via API - and after success redirect / reload current page - which is not a route change - but should invoke the page's `fetch` method to re-fetch data from API (via store..)\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c7337\">#c7337\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2946,2947],{"name":2924,"color":2937},{"name":2948,"color":2949},"2.x","d4c5f9",3504,"Nuxt page fn $forceUpdate exists when running in dev mode but not in prod (build, start) [nuxt-edge]","2023-01-22T15:30:05Z","https://github.com/nuxt/nuxt/issues/3504",0.7374455,{"description":2956,"labels":2957,"number":2962,"owner":2875,"repository":2875,"state":2886,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Environment\n\n*package.json*\n```js\n{\n \"name\": \"nuxt-app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"build\": \"nuxt build\",\n \"dev\": \"nuxt dev\",\n \"generate\": \"nuxt generate\",\n \"preview\": \"nuxt preview\",\n \"postinstall\": \"nuxt prepare\"\n },\n \"dependencies\": {\n \"@prisma/nuxt\": \"^0.1.2\",\n \"@vueuse/core\": \"^12.0.0\",\n \"@vueuse/nuxt\": \"^12.0.0\",\n \"nuxt\": \"^3.14.1592\",\n \"vue\": \"latest\",\n \"vue-router\": \"latest\"\n },\n \"devDependencies\": {\n \"@nuxt/devtools\": \"npm:@nuxt/devtools-edge@latest\",\n \"@nuxtjs/tailwindcss\": \"^6.12.2\",\n \"@prisma/client\": \"^6.0.1\",\n \"prisma\": \"^6.0.1\"\n }\n}\n\n```\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-starter-uquybs?file=nuxt.config.ts,app.vue\n\n### Describe the bug\n\nI have this code that should submit a form but I added `submit.prevent=\"handleSubmit()\"` so this should stop from refreshing.\n\nI tried to reproduce it on stackblitz however everything is working there (including the devtools) but on my local upon clicking create button the page refreshes.\n\n\n\n```html\n\u003Ctemplate>\n\u003Cform @submit.prevent=\"handleSubmit()\" class=\"w-full\">\n\t\u003Cdiv class=\"mb-4\">\n\t\t\u003Cinput\n\t\t\tv-model=\"form.email\"\n\t\t\ttype=\"email\"\n\t\t\tid=\"email\"\n\t\t\tclass=\"w-full p-3 border border-gray-300 rounded mt-1\"\n\t\t\tplaceholder=\"Email address\"\n\t\t/>\n\t\u003C/div>\n\t\u003Cdiv class=\"mb-6\">\n\t\t\u003Cinput\n\t\t\tv-model=\"form.password\"\n\t\t\ttype=\"password\"\n\t\t\tid=\"password\"\n\t\t\tclass=\"w-full p-3 border border-gray-300 rounded mt-1\"\n\t\t\tplaceholder=\"Password\"\n\t\t/>\n\t\u003C/div>\n\t\u003Cdiv class=\"mb-6\">\n\t\t\u003Cinput\n\t\t\tv-model=\"form.confirm_password\"\n\t\t\ttype=\"confirm_password\"\n\t\t\tid=\"confirm_password\"\n\t\t\tclass=\"w-full p-3 border border-gray-300 rounded mt-1\"\n\t\t\tplaceholder=\"Password Confirmation\"\n\t\t/>\n\t\u003C/div>\n\t\u003Cbutton\n\t\ttype=\"submit\"\n\t\tclass=\"w-full bg-blue-600 text-white p-3 rounded hover:bg-blue-700\"\n\t>\n\t\tCreate\n\t\u003C/button>\n\u003C/form>\n\u003C/template>\n\u003Cscript setup>\nconst handleSubmit = async () => {\n\t\n\tif (form.value.password !== form.value.confirm_password) {\n\t\tconsole.log(\"Passwords do not match\");\n\t\talert(\"Passwords do not match\");\n\t\treturn;\n\t}\n\n\tconsole.log(form.value);\n};\n...\n```\n\nhttps://github.com/user-attachments/assets/18ea3431-cadb-4613-a2a3-4703755f2f91\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[2958,2959],{"name":2924,"color":2937},{"name":2960,"color":2961},"needs reproduction","FBCA04",30185,"Page refresh bug","2025-02-03T14:25:51Z","https://github.com/nuxt/nuxt/issues/30185",0.7405723,{"description":2968,"labels":2969,"number":2971,"owner":2875,"repository":2875,"state":2886,"title":2972,"updated_at":2973,"url":2974,"score":2975},"Would it be possible to release a new release candidate ?\r\nI use some features which are currently only in the dev branch. If I install nuxt locally I have no problems but if I try to run my Dockerfile I always get an error. It seems like the Docker environment can't handle the local building of nuxt.\r\nI'm also pretty sure other people who don't want to use the dev branch directly would appreciate a new release candidate.\r\n\r\nBTW Nuxt is awesome. Thx for this great framework.\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/c1882\">#c1882\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2970],{"name":2948,"color":2949},2122,"Publish a new release candidate","2023-01-18T15:43:05Z","https://github.com/nuxt/nuxt/issues/2122",0.74187887,["Reactive",2977],{},["Set"],["ShallowReactive",2980],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fTel550M7uDOdfHlXK0WVBDzgOsVfhJarurq1ofcVKng":-1},"/nuxt/nuxt.com/152"]