\r\n`\r\n\r\n\r\nError:\r\n\r\n```\r\nNuxtServerError\r\n\r\nrender function or template not defined in component: grids\r\n```\r\n\r\n\r\n### Not working ((\r\n### How fix this\r\n\r\n\r\n\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/c1247\">#c1247\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2035],{"name":1999,"color":2000},1405,"global component","2023-01-18T15:41:44Z","https://github.com/nuxt/nuxt/issues/1405",0.6141833,{"description":2042,"labels":2043,"number":2045,"owner":1988,"repository":1988,"state":2002,"title":2046,"updated_at":2047,"url":2048,"score":2049},"Hi there!\r\n\r\nI just experiencing an issue that `global components` that defined in `plugins/` directory doesn't seems to work on production build.\r\n\r\n\r\n\r\n> left : build & run on production mode\r\n> right : run development server\r\n\r\nI've assure that this issue only happened on client side rendering because i've check the server side rendering seems to work just fine.\r\n\r\n\r\n\r\nThe global component `\u003Capp-main />` is registered on `/plugins/global-components.js` file here\r\n\r\n\r\n\r\nand here my `nuxt.config.js` file\r\n\r\n```js\r\n'use strict'\r\n\r\nconst { resolve } = require('path')\r\nconst Env = use('Env')\r\n\r\nmodule.exports = {\r\n build: {\r\n publicPath: Env.get('CDN_URL', '/'),\r\n\r\n analyze: {\r\n analyzerMode: 'static',\r\n generateStatsFile: true,\r\n statsFilename: 'webpack-stats.json'\r\n },\r\n\r\n extractCSS: true,\r\n\r\n postcss: {\r\n plugins: {\r\n 'postcss-custom-properties': false\r\n }\r\n }\r\n },\r\n\r\n css: [\r\n '~assets/scss/main.scss'\r\n ],\r\n\r\n head: {\r\n htmlAttrs: {},\r\n\r\n meta: [\r\n {\r\n charset: 'utf-8'\r\n },\r\n {\r\n name: 'viewport',\r\n content: 'width=device-width,initial-scale=1'\r\n },\r\n {\r\n 'http-equiv': 'x-ua-compatible',\r\n content: 'ie=edge,chrome=1'\r\n },\r\n {\r\n name: 'theme-color',\r\n content: '#ffffff'\r\n }\r\n ],\r\n\r\n link: [\r\n {\r\n rel: 'shortcut icon',\r\n type: 'image/x-icon',\r\n href: '/favicon.ico'\r\n },\r\n {\r\n rel: 'apple-touch-icon',\r\n size: '192x192',\r\n href: '/mobile-icon.png'\r\n },\r\n {\r\n rel: 'icon',\r\n type: 'image/png',\r\n size: '192x192',\r\n href: '/mobile-icon.png'\r\n },\r\n {\r\n rel: 'icon',\r\n type: 'image/png',\r\n size: '32x32',\r\n href: '/favicon.png'\r\n },\r\n {\r\n rel: 'stylesheet',\r\n href: 'https://fonts.googleapis.com/css?family=Montserrat:300,400,600'\r\n }\r\n ],\r\n\r\n noscript: [{\r\n innerHtml: `\r\n \u003Ch1>Javascript Disabled\u003C/h1>\r\n \u003Cp>It appears that you do not have Javascript enabled. This application relies on Javascript for most of our features.\u003Cp>\r\n \u003Cp>Please enable Javascript and \u003Ca href=\".\">reload\u003C/a> in order to use this site.\u003C/p>\r\n `}]\r\n },\r\n\r\n loading: {\r\n color: '#589d8d'\r\n },\r\n\r\n plugins: [\r\n '~/plugins/global-components.js'\r\n ],\r\n\r\n router: {\r\n base: '/',\r\n linkActiveClass: '',\r\n linkExactActiveClass: 'is-active',\r\n\r\n scrollBehaviour: () => ({\r\n x: 0,\r\n y: 0\r\n }),\r\n\r\n extendRoutes: (routes) => {\r\n routes.forEach((route) => {\r\n route.meta = {\r\n title: route.name\r\n }\r\n })\r\n }\r\n },\r\n\r\n buildDir: resolve(__dirname, '..', 'public'),\r\n srcDir: resolve(__dirname, '..', 'resources')\r\n}\r\n```\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/c2492\">#c2492\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2044],{"name":1999,"color":2000},2868,"global components non rendered properly on production build?","2023-01-18T16:09:43Z","https://github.com/nuxt/nuxt/issues/2868",0.62355924,{"labels":2051,"number":2057,"owner":1988,"repository":1988,"state":2002,"title":2058,"updated_at":2059,"url":2060,"score":2061},[2052,2053,2054],{"name":2024,"color":2025},{"name":1985,"color":1986},{"name":2055,"color":2056},"needs reproduction","FBCA04",13242,"Components cannot be registered by Vue plugins","2023-01-19T16:49:12Z","https://github.com/nuxt/nuxt/issues/13242",0.6242211,{"description":2063,"labels":2064,"number":2066,"owner":1988,"repository":1988,"state":2002,"title":2067,"updated_at":2068,"url":2069,"score":2070},"I'm (hopefully) going down the road of making my first nuxt.js module, something to help build global programmatic components in the nuxt.js environment.\n\nhere is an example setup w/ it being used as a plugin: \n\nhttps://github.com/acidjazz/nuxt-global-component\n\nhere is my `plugins/global-components.js` in my current project\n\n```javascript\nimport Vue from 'vue'\nimport Modal from '@/components/global/Modal'\nimport Message from '@/components/global/Message'\nVue.use(Modal, Message)\n```\nthe Message global component registers `$message` to Vue like this \n```javascript\n...\nconst Plugin = {\n install(Vue) {\n Vue.prototype['$message'] = MessageProgrammatic\n }\n}\nVue.use(Plugin)\nexport default Plugin\n```\nthis allows me to `this.$message.show(\"message\")` anywhere in my nuxt.js app\n\nthe current problem/request I'd like to hopefully figure out is how can i access `this.$message` in another plugin?\n\ni'm writing one for `axios` where i show my message component for most any errors, and i'd like to access it in my `plugins/axios.js` that currently is\n\n```javascript\nexport default ({ $axios, $message }) => {\n $axios.onError(error => {\n const code = parseInt(error.response && error.response.status)\n if (error.response.data && error.response.data.errors) {\n for (let key in error.response.data.errors) {\n for (let index in error.response.data.errors[key]) {\n $message.show({ type: 'danger', copy: error.response.data.errors[key][index]})\n }\n }\n }\n })\n}\n```\n\nbut `this.$message` is undefined, is this possible?\n\n\n\n\n\n\n\n\n\n\n\u003C!--cmty-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c7623\">#c7623\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2065],{"name":1999,"color":2000},3793,"plugins accessing plugins","2023-01-18T16:26:35Z","https://github.com/nuxt/nuxt/issues/3793",0.625074,{"description":2072,"labels":2073,"number":2083,"owner":1988,"repository":1988,"state":2002,"title":2084,"updated_at":2085,"url":2086,"score":2087},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v18.8.0\r\n- Nuxt Version: 3.6.5\r\n- Nitro Version: 2.5.2\r\n- Package Manager: npm@9.7.2\r\n- Builder: vite\r\n- User Config: ssr, srcDir, devtools, extends, vite, modules, graphql-client, app\r\n- Runtime Modules: vuetify-nuxt-module@0.5.7, nuxt-gtag@0.5.9, nuxt-graphql-client@0.2.30\r\n- Build Modules: -\n\n### Reproduction\n\nHave your main App with:\r\n```\r\nexport default defineNuxtConfig({\r\n extends: [\r\n './layers/my_awesome_layer',\r\n ],\r\n})\r\n```\r\n\r\nHave a simple page doing something like:\r\n```\r\n\u003Ctemplate>\r\n \u003CTheNavbar />\r\n\u003C/template>\r\n```\r\n\r\nWith the component TheNavbar being in your layer.\r\nIf I add\r\n```\r\n components: {\r\n dirs: [\r\n {\r\n path: '~/components/global',\r\n global: true,\r\n },\r\n '~/components',\r\n ],\r\n },\r\n```\r\n\r\nIn the config of my layer so I can use `\u003Ccomponent :is=\"resolveComponent('TheNavbar')\" />`\r\n\r\n\n\n### Describe the bug\n\nThe overall problem is that I have an UI-Kit layer with a lot of components.\r\nAnd in my pages I must call an external API with fetch to retrieve an array of components.\r\nThen I have to use the dynamic \u003Ccomponent :is /> but when I try to globally register my layer components it does not work at all and even when it's not dynamic those layer components are unkwown.\r\n\r\nSo is it a bug?\r\n\r\nWhat would be the best practice to have dynamic component with name fetched from an external API on a page and with all of them registered in a layer?\r\n\r\nThank you all!\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2074,2075,2076,2077,2080],{"name":2024,"color":2025},{"name":1985,"color":1986},{"name":2055,"color":2056},{"name":2078,"color":2079},"layers","006B75",{"name":2081,"color":2082},"closed-by-bot","ededed",22704,"Marking Layer Components Global = Failed To Resolve","2023-09-07T01:47:44Z","https://github.com/nuxt/nuxt/issues/22704",0.62608,{"labels":2089,"number":2092,"owner":1988,"repository":1988,"state":2002,"title":2093,"updated_at":2094,"url":2095,"score":2096},[2090,2091],{"name":1985,"color":1986},{"name":1999,"color":2000},6575,"Server-side directives aren't applied on custom components","2023-01-22T15:34:46Z","https://github.com/nuxt/nuxt/issues/6575",0.62656105,["Reactive",2098],{},["Set"],["ShallowReactive",2101],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"CFZaNBCMPkuCUsPt6wXpyYWV7TarkBgBJMwix-ttEd0":-1},"/nuxt/nuxt/4006"]